!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/lampp/lib/php/test/HTML_Progress/tests/   drwxr-xr-x
Free 13.61 GB of 61.93 GB (21.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     HTML_Progress_TestCase_getDM.php (2.28 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * API getDM Unit tests for HTML_Progress class.
 *
 * @version    $Id: HTML_Progress_TestCase_getDM.php,v 1.6 2005/08/28 14:12:09 farell Exp $
 * @author     Laurent Laville <pear@laurent-laville.org>
 * @package    HTML_Progress
 * @ignore
 */

class HTML_Progress_TestCase_getDM extends PHPUnit_TestCase
{
    
/**
     * HTML_Progress instance
     *
     * @var        object
     */
    
var $progress;

    function 
HTML_Progress_TestCase_getDM($name)
    {
        
$this->PHPUnit_TestCase($name);
    }

    function 
setUp()
    {
        
error_reporting(E_ALL);

        
$logger['push_callback'] = array(&$this'_pushCallback'); // don't die when an exception is thrown
        
$this->progress = new HTML_Progress($logger);
    }

    function 
tearDown()
    {
        unset(
$this->progress);
    }

    function 
_stripWhitespace($str)
    {
        return 
preg_replace('/\\s+/'''$str);
    }

    function 
_methodExists($name)
    {
        if (
substr(PHP_VERSION,0,1) < '5') {
            
$n strtolower($name);
        } else {
            
$n $name;
        }
        if (
in_array($nget_class_methods($this->progress))) {
            return 
true;
        }
        
$this->assertTrue(false'method '$name ' not implemented in ' get_class($this->progress));
        return 
false;
    }

    function 
_pushCallback($err)
    {
        
// don't die if the error is an exception (as default callback)
        
return HTML_PROGRESS_ERRORSTACK_PUSH;
    }

    function 
_getResult()
    {
        if (
$this->progress->hasErrors()) {
            
$err $this->progress->getError();
            
$this->assertTrue(false$err['message']);
        } else {
            
$this->assertTrue(true);
        }
    }

    
/**
     * TestCases for method getDM.
     *
     */
    
function test_getDM_fail()
    {
        if (!
$this->_methodExists('getDM')) {
            return;
        }
        
$dm =& $this->progress->getDM();

        
$this->assertEquals($this$dm'Wrong DM instance;');
    }

    function 
test_getDM()
    {
        if (!
$this->_methodExists('getDM')) {
            return;
        }
        
$dm =& $this->progress->getDM();

        
$this->assertEquals($this->progress->_DM$dm);
    }
}
?>

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