CHips L MINI SHELL

CHips L pro

Current Path : /opt/cpanel/ea-php54/root/usr/share/tests/pear/XML_Serializer/tests/
Upload File :
Current File : //opt/cpanel/ea-php54/root/usr/share/tests/pear/XML_Serializer/tests/Unserializer_ScalarsTest.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>
 */

require_once 'XML/Unserializer.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_Unserializer_Scalars_TestCase extends PHPUnit_Framework_TestCase {

   /**
    * Test unserializing simple data
    */
    public function testData()
    {
        $u = new XML_Unserializer();
        $xml = '<xml>data</xml>';
        $u->unserialize($xml);
        $this->assertEquals('data', $u->getUnserializedData());
    }

   /**
    * Test extracting the root name
    */
    public function testRootName()
    {
        $u = new XML_Unserializer();
        $xml = '<xml>data</xml>';
        $u->unserialize($xml);
        $this->assertEquals('xml', $u->getRootName());
    }

}
?>

Copyright 2K16 - 2K18 Indonesian Hacker Rulez