!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

C:\cumbreclima\wp-content\plugins\wordpress-seo\vendor\yoast\license-manager\tests\   drwxrwxrwx
Free 3.26 GB of 39.52 GB (8.25%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test-class-yoast-license-manager.php (1.74 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

include( dirname__FILE__ ) . '../../class-product.php' );
include( 
dirname__FILE__ ) . '../../class-license-manager.php' );

class 
Yoast_Product_Double extends Yoast_Product {

    
/**
     * Construct the real Product class with our fake data
     */
    
public function __construct() {
        
parent::__constructget_site_url(), 'test-product''slug-test-product''1.0.0' );
    }

}

class 
Yoast_License_Manager_Double extends Yoast_License_Manager {

    public 
$product;

    public function 
__construct() {
        
$this->product = new Yoast_Product_Double();

        
parent::__construct$this->product );
    }

    public function 
specific_hooks() {
        return 
$this->specific_hooks();
    }

    public function 
setup_auto_updater() {
        return 
$this->setup_auto_updater();
    }

    
/**
     * Wrapper for get_curl_version()
     *
     * @return mixed
     */
    
public function double_get_curl_version(){
        return 
$this->get_curl_version();
    }

}

class 
Test_Yoast_License_Manager extends Yst_License_Manager_UnitTestCase {

    private 
$class;

    public function 
setUp() {
        
$this->class = new Yoast_License_Manager_Double();
    }

    
/**
     * Make sure the API url is correct in the product
     *
     * @covers Yoast_License_Manager::get_api_url()
     */
    
public function test_get_api_url(){
        
$this->assertEquals$this->class->product->get_api_url(), get_site_url() );
    }

    
/**
     * Make sure the API url is correct in the product
     *
     * @covers Yoast_License_Manager::get_curl_version()
     */
    
public function test_get_curl_version_WITH_curl_installed_on_test_server(){
        
$curl_result $this->class->double_get_curl_version();

        if( 
function_exists('curl_version') ){
            
$curl_version curl_version();

            
$this->assertEquals$curl_result$curl_version['version'] );
        }
        else{
            
$this->assertFalse$curl_result );
        }
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--