403Webshell
Server IP : 217.160.0.251  /  Your IP : 216.73.216.102
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u94981163 ( 8991765)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/php7.3/test/MDB2/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/php7.3/test/MDB2/tests/Console_TestListener.php
<?php
class Console_TestListener extends PHPUnit_TestListener {
    function addError(&$test, &$t) {
        $this->_errors += 1;
        echo(" Error $this->_errors in ".$test->getName()." : $t\n");
    }

    function addFailure(&$test, &$t) {
        $this->_fails += 1;
        if ($this->_fails == 1) {
            echo("\n");
        }
        echo("Failure $this->_fails : $t\n");
    }

    function endTest(&$test) {
        if ($this->_fails == 0 && $this->_errors == 0) {
            echo(' Test passed');
        } else {
            echo("There were $this->_fails failures for ".$test->getName()."\n");
            echo("There were $this->_errors errors for ".$test->getName()."\n");
        }
        echo("\n");
    }

    function startTest(&$test) {
        $this->_fails = 0;
        $this->_errors = 0;
        echo(get_class($test).' : Starting '.$test->getName().' ...');
    }
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit