Sindbad~EG File Manager

Current Path : /proc/thread-self/root/opt/cpanel/ea-php73/root/usr/share/tests/pear/XML_Util/tests/
Upload File :
Current File : //proc/thread-self/root/opt/cpanel/ea-php73/root/usr/share/tests/pear/XML_Util/tests/SplitQualifiedNameTests.php

<?php

class SplitQualifiedNameTests extends AbstractUnitTests
{
    /**
     * @covers XML_Util::splitQualifiedName()
     */
    public function testSplitQualifiedNameWithoutNamespace()
    {
        $original = "xslt:stylesheet";
        $expected = array(
            'namespace' => 'xslt',
            'localPart' => 'stylesheet',
        );
        $this->assertEquals($expected, XML_Util::splitQualifiedName($original));
    }

    /**
     * @covers XML_Util::splitQualifiedName()
     */
    public function testSplitQualifiedNameWithNamespace()
    {
        $original = "stylesheet";
        $namespace = "myNs";
        $expected = array(
            'namespace' => 'myNs',
            'localPart' => 'stylesheet',
        );
        $this->assertEquals($expected, XML_Util::splitQualifiedName($original, $namespace));
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists