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 /
XML_Serializer /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
AllTests.php
6.85
KB
-rw-r--r--
bug-12139.phpt
530
B
-rw-r--r--
bug-13896.phpt
2.02
KB
-rw-r--r--
bug-15602.phpt
1.34
KB
-rw-r--r--
bug-9799.phpt
1.12
KB
-rw-r--r--
req-13564.phpt
1.14
KB
-rw-r--r--
Serializer_Arrays_TestCase.php
2.63
KB
-rw-r--r--
Serializer_Objects_TestCase.php
2.98
KB
-rw-r--r--
Serializer_Option_AttributesContent_TestCase.php
3.61
KB
-rw-r--r--
Serializer_Option_CDataSections_TestCase.php
2.17
KB
-rw-r--r--
Serializer_Option_ClassName_TestCase.php
1.92
KB
-rw-r--r--
Serializer_Option_Comment_TestCase.php
1.92
KB
-rw-r--r--
Serializer_Option_DefaultTag_TestCase.php
3.06
KB
-rw-r--r--
Serializer_Option_DocType_TestCase.php
3
KB
-rw-r--r--
Serializer_Option_EncodeFunc_TestCase.php
2.5
KB
-rw-r--r--
Serializer_Option_IgnoreNull_TestCase.php
2.17
KB
-rw-r--r--
Serializer_Option_Indent_TestCase.php
2.08
KB
-rw-r--r--
Serializer_Option_Linebreaks_TestCase.php
1.78
KB
-rw-r--r--
Serializer_Option_Mode_TestCase.php
2.44
KB
-rw-r--r--
Serializer_Option_Namespace_TestCase.php
2.27
KB
-rw-r--r--
Serializer_Option_ReturnResult_TestCase.php
1.8
KB
-rw-r--r--
Serializer_Option_RootAttributes_TestCase.php
2.09
KB
-rw-r--r--
Serializer_Option_RootName_TestCase.php
2.02
KB
-rw-r--r--
Serializer_Option_TagMap_TestCase.php
2.62
KB
-rw-r--r--
Serializer_Option_TypeHints_TestCase.php
2.48
KB
-rw-r--r--
Serializer_Option_XmlDeclaration_TestCase.php
2.27
KB
-rw-r--r--
Serializer_Scalars_TestCase.php
3.26
KB
-rw-r--r--
show_ScalarAsAttributes_usage.phpt
2.3
KB
-rw-r--r--
Unserializer_Arrays_TestCase.php
2.07
KB
-rw-r--r--
Unserializer_Objects_TestCase.php
3.43
KB
-rw-r--r--
Unserializer_Option_Encodings_TestCase.php
1.87
KB
-rw-r--r--
Unserializer_Option_GuessTypes_TestCase.php
2.72
KB
-rw-r--r--
Unserializer_Option_Whitespace_TestCase.php
2.72
KB
-rw-r--r--
Unserializer_Scalars_TestCase.php
1.84
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Serializer_Option_TagMap_TestCase.php
<?php /** * Unit Tests for serializing arrays * * @package XML_Serializer * @subpackage tests * @author Stephan Schmidt <schst@php-tools.net> * @author Chuck Burgess <ashnazg@php.net> */ /** * PHPUnit main() hack * * "Call class::main() if this source file is executed directly." */ if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'XML_Serializer_Option_TagMap_TestCase::main'); } require_once 'PHPUnit/Framework/TestCase.php'; require_once 'PHPUnit/Framework/TestSuite.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; require_once 'XML/Serializer.php'; /** * Unit Tests for serializing arrays * * @package XML_Serializer * @subpackage tests * @author Stephan Schmidt <schst@php-tools.net> * @author Chuck Burgess <ashnazg@php.net> */ class XML_Serializer_Option_TagMap_TestCase extends PHPUnit_Framework_TestCase { private $options = array( XML_SERIALIZER_OPTION_INDENT => '', XML_SERIALIZER_OPTION_LINEBREAKS => '', XML_SERIALIZER_OPTION_TAGMAP => array('foo' => 'bar') ); public static function main() { $suite = new PHPUnit_Framework_TestSuite('XML_Serializer_Option_TagMap_TestCase'); $result = PHPUnit_TextUI_TestRunner::run($suite); } protected function setUp() {} protected function tearDown() {} /** * Test array */ public function testArray() { $s = new XML_Serializer($this->options); $data = array( 'foo' => 'test' ); $s->serialize($data); $this->assertEquals('<array><bar>test</bar></array>', $s->getSerializedData()); } /** * Test object */ public function testObject() { $s = new XML_Serializer($this->options); $obj = new stdClass(); $obj->foo = 'test'; $s->serialize($obj); $this->assertEquals('<stdclass><bar>test</bar></stdclass>', strtolower($s->getSerializedData())); } /** * Test object */ public function testNumberedObjects() { $s = new XML_Serializer($this->options); $s->setOption(XML_SERIALIZER_OPTION_CLASSNAME_AS_TAGNAME, true); $s->setOption(XML_SERIALIZER_OPTION_TAGMAP, array('stdClass' => 'foo')); $s->serialize(array(new stdClass(), new stdClass())); $this->assertEquals('<array><foo /><foo /></array>', strtolower($s->getSerializedData())); } } /** * PHPUnit main() hack * "Call class::main() if this source file is executed directly." */ if (PHPUnit_MAIN_METHOD == 'XML_Serializer_Option_TagMap_TestCase::main') { XML_Serializer_Option_TagMap_TestCase::main(); } ?>
Close