!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:     ConfigurationTest.php (2.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class ConfigurationTest extends PHPUnit_Framework_TestCase {
    
/**
     * @expectedException Whip_InvalidType
     */
    
public function testItThrowsAnErrorIfAFaultyConfigurationIsPassed() {
        
$configuration = new Whip_Configuration'Invalid configuration' );
    }

    public function 
testItReturnsANegativeNumberIfRequirementCannotBeFound() {
        
$configuration = new Whip_Configuration( array( 'php' => '5.6' ) );
        
$requirement $this->getMockBuilder'Whip_Requirement' )
                            ->
setMethods( array( 'component' ) )
                            ->
getMock();

        
$requirement
            
->expects$this->any() )
            ->
method'component' )
            ->
will$this->returnValue'mysql' ) );

        
$this->assertEquals( -1$configuration->configuredVersion$requirement ) );
    }

    public function 
testItReturnsAnEntryIfRequirementIsFound() {
        
$configuration = new Whip_Configuration( array( 'php' => '5.6' ) );
        
$requirement $this->getMockBuilder'Whip_Requirement' )
                            ->
setMethods( array( 'component' ) )
                            ->
getMock();

        
$requirement
            
->expects$this->any() )
            ->
method'component' )
            ->
will$this->returnValue'php' ) );

        
$this->assertEquals'5.6'$configuration->configuredVersion$requirement ) );
    }

    public function 
testIfRequirementIsConfigured() {
        
$configuration = new Whip_Configuration( array( 'php' => '5.6' ) );
        
$requirement $this->getMockBuilder'Whip_Requirement' )
                            ->
setMethods( array( 'component' ) )
                            ->
getMock();

        
$requirement
            
->expects$this->any() )
            ->
method'component' )
            ->
will$this->returnValue'php' ) );

        
$falseRequirement $this->getMockBuilder'Whip_Requirement' )
                                 ->
setMethods( array( 'component' ) )
                                 ->
getMock();

        
$falseRequirement
            
->expects$this->any() )
            ->
method'component' )
            ->
will$this->returnValue'mysql' ) );

        
$this->assertTrue$configuration->hasRequirementConfigured$requirement ) );
        
$this->assertFalse$configuration->hasRequirementConfigured$falseRequirement ) );
    }
}

:: 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.0077 ]--