!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/3ros/simpletest/extensions/   drwxrwxr-x
Free 14.39 GB of 61.93 GB (23.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pear_test_case.php (6.77 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
/**
     *    adapter for SimpleTest to use PEAR PHPUnit test cases
     *    @package    SimpleTest
     *    @subpackage Extensions
     *    @version    $Id: pear_test_case.php,v 1.8 2005/08/03 23:25:19 lastcraft Exp $
     */
    
    /**#@+
     * include SimpleTest files
     */
    
require_once(dirname(__FILE__) . '/../dumper.php');
    require_once(
dirname(__FILE__) . '/../compatibility.php');
    require_once(
dirname(__FILE__) . '/../test_case.php');
    require_once(
dirname(__FILE__) . '/../expectation.php');
    
/**#@-*/
   
    /**
     *    Adapter for PEAR PHPUnit test case to allow
     *    legacy PEAR test cases to be used with SimpleTest.
     *    @package      SimpleTest
     *    @subpackage   Extensions
     */
    
class PHPUnit_TestCase extends SimpleTestCase {
        var 
$_loosely_typed;
        
        
/**
         *    Constructor. Sets the test name.
         *    @param $label        Test name to display.
         *    @public
         */
        
function PHPUnit_TestCase($label false) {
            
$this->SimpleTestCase($label);
            
$this->_loosely_typed false;
        }
        
        
/**
         *    Will test straight equality if set to loose
         *    typing, or identity if not.
         *    @param $first          First value.
         *    @param $second         Comparison value.
         *    @param $message        Message to display.
         *    @public
         */
        
function assertEquals($first$second$message "%s"$delta 0) {
            if (
$this->_loosely_typed) {
                
$expectation = &new EqualExpectation($first);
            } else {
                
$expectation = &new IdenticalExpectation($first);
            }
            
$this->assert($expectation$second$message);
        }
        
        
/**
         *    Passes if the value tested is not null.
         *    @param $value          Value to test against.
         *    @param $message        Message to display.
         *    @public
         */
        
function assertNotNull($value$message "%s") {
            
parent::assertTrue(isset($value), $message);
        }
        
        
/**
         *    Passes if the value tested is null.
         *    @param $value          Value to test against.
         *    @param $message        Message to display.
         *    @public
         */
        
function assertNull($value$message "%s") {
            
parent::assertTrue(!isset($value), $message);
        }
        
        
/**
         *    In PHP5 the identity test tests for the same
         *    object. This is a reference test in PHP4.
         *    @param $first          First object handle.
         *    @param $second         Hopefully the same handle.
         *    @param $message        Message to display.
         *    @public
         */
        
function assertSame(&$first, &$second$message "%s") {
            
$dumper = &new SimpleDumper();
            
$message sprintf(
                    
$message,
                    
"[" $dumper->describeValue($first) .
                            
"] and [" $dumper->describeValue($second) .
                            
"] should reference the same object");
            return 
$this->assertTrue(
                    
SimpleTestCompatibility::isReference($first$second),
                    
$message);
        }
        
        
/**
         *    In PHP5 the identity test tests for the same
         *    object. This is a reference test in PHP4.
         *    @param $first          First object handle.
         *    @param $second         Hopefully a different handle.
         *    @param $message        Message to display.
         *    @public
         */
        
function assertNotSame(&$first, &$second$message "%s") {
            
$dumper = &new SimpleDumper();
            
$message sprintf(
                    
$message,
                    
"[" $dumper->describeValue($first) .
                            
"] and [" $dumper->describeValue($second) .
                            
"] should not be the same object");
            return 
$this->assertFalse(
                    
SimpleTestCompatibility::isReference($first$second),
                    
$message);
        }
        
        
/**
         *    Sends pass if the test condition resolves true,
         *    a fail otherwise.
         *    @param $condition      Condition to test true.
         *    @param $message        Message to display.
         *    @public
         */
        
function assertTrue($condition$message "%s") {
            
parent::assertTrue($condition$message);
        }
        
        
/**
         *    Sends pass if the test condition resolves false,
         *    a fail otherwise.
         *    @param $condition      Condition to test false.
         *    @param $message        Message to display.
         *    @public
         */
        
function assertFalse($condition$message "%s") {
            
parent::assertTrue(!$condition$message);
        }
        
        
/**
         *    Tests a regex match. Needs refactoring.
         *    @param $pattern        Regex to match.
         *    @param $subject        String to search in.
         *    @param $message        Message to display.
         *    @public
         */
        
function assertRegExp($pattern$subject$message "%s") {
            
$this->assert(new PatternExpectation($pattern), $subject$message);
        }
        
        
/**
         *    Tests the type of a value.
         *    @param $value          Value to take type of.
         *    @param $type           Hoped for type.
         *    @param $message        Message to display.
         *    @public
         */
        
function assertType($value$type$message "%s") {
            
parent::assertTrue(gettype($value) == strtolower($type), $message);
        }
        
        
/**
         *    Sets equality operation to act as a simple equal
         *    comparison only, allowing a broader range of
         *    matches.
         *    @param $loosely_typed     True for broader comparison.
         *    @public
         */
        
function setLooselyTyped($loosely_typed) {
            
$this->_loosely_typed $loosely_typed;
        }

        
/**
         *    For progress indication during
         *    a test amongst other things.
         *    @return            Usually one.
         *    @public
         */
        
function countTestCases() {
            return 
$this->getSize();
        }
        
        
/**
         *    Accessor for name, normally just the class
         *    name.
         *    @public
         */
        
function getName() {
            return 
$this->getLabel();
        }
        
        
/**
         *    Does nothing. For compatibility only.
         *    @param $name        Dummy
         *    @public
         */
        
function setName($name) {
        }
    }
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6035 ]--