✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.30
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/php83/usr/share/pear/test/XML_Util/tests//IsValidNameTests.php
<?php

class IsValidNameTests extends AbstractUnitTests
{
    /**
     * @covers XML_Util::isValidName()
     */
    public function testIsValidNameForTagNameThatIsValid()
    {
        $tagName = "alpha-x_y_z.123";
        $result = XML_Util::isValidName($tagName);
        $this->assertTrue($result);
    }

    /**
     * @covers XML_Util::isValidName()
     */
    public function testIsValidNameForTagNameWithInvalidCharacter()
    {
        $tagName = "invalidTag?";
        $result = XML_Util::isValidName($tagName);
        $this->assertInstanceOf('PEAR_Error', $result);
        $expectedError = "XML names may only contain alphanumeric chars, period, hyphen, colon and underscores";
        $this->assertEquals($expectedError, $result->getMessage());
    }

    /**
     * @covers XML_Util::isValidName()
     */
    public function testIsValidNameForTagNameWithInvalidStartingCharacter()
    {
        $tagName = "1234five";
        $result = XML_Util::isValidName($tagName);
        $this->assertInstanceOf('PEAR_Error', $result);
        $expectedError = "XML names may only start with letter or underscore";
        $this->assertEquals($expectedError, $result->getMessage());
    }

    /**
     * @covers XML_Util::isValidName()
     */
    public function testIsValidNameForInt()
    {
        $tagName = 1;
        $result = XML_Util::isValidName($tagName);
        $this->assertInstanceOf('PEAR_Error', $result);
        $expectedError = "XML names may only start with letter or underscore";
        $this->assertEquals($expectedError, $result->getMessage());
    }

    /**
     * @covers XML_Util::isValidName()
     */
    public function testIsValidNameForEmptyString()
    {
        $tagName = '';
        $result = XML_Util::isValidName($tagName);
        $this->assertInstanceOf('PEAR_Error', $result);
        $expectedError = "XML names may only start with letter or underscore";
        $this->assertEquals($expectedError, $result->getMessage());
    }
}


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
12 May 2025 6.07 PM
root / root
0755
AbstractUnitTests.php
0.414 KB
12 May 2025 6.07 PM
root / root
0644
ApiVersionTests.php
0.216 KB
12 May 2025 6.07 PM
root / root
0644
AttributesToStringTests.php
7.521 KB
12 May 2025 6.07 PM
root / root
0644
Bug18343Tests.php
1.701 KB
12 May 2025 6.07 PM
root / root
0644
Bug21177Tests.php
1.029 KB
12 May 2025 6.07 PM
root / root
0644
Bug21184Tests.php
0.439 KB
12 May 2025 6.07 PM
root / root
0644
Bug4950Tests.php
0.712 KB
12 May 2025 6.07 PM
root / root
0644
Bug5392Tests.php
0.749 KB
12 May 2025 6.07 PM
root / root
0644
CollapseEmptyTagsTests.php
4.251 KB
12 May 2025 6.07 PM
root / root
0644
CreateCDataSectionTests.php
0.354 KB
12 May 2025 6.07 PM
root / root
0644
CreateCommentTests.php
0.332 KB
12 May 2025 6.07 PM
root / root
0644
CreateEndElementTests.php
0.599 KB
12 May 2025 6.07 PM
root / root
0644
CreateStartElementTests.php
5.283 KB
12 May 2025 6.07 PM
root / root
0644
CreateTagFromArrayTests.php
13.176 KB
12 May 2025 6.07 PM
root / root
0644
CreateTagTests.php
7.791 KB
12 May 2025 6.07 PM
root / root
0644
GetDocTypeDeclarationTests.php
1.737 KB
12 May 2025 6.07 PM
root / root
0644
GetXmlDeclarationTests.php
1.137 KB
12 May 2025 6.07 PM
root / root
0644
IsValidNameTests.php
1.937 KB
12 May 2025 6.07 PM
root / root
0644
RaiseErrorTests.php
0.438 KB
12 May 2025 6.07 PM
root / root
0644
ReplaceEntitiesTests.php
4.22 KB
12 May 2025 6.07 PM
root / root
0644
ReverseEntitiesTests.php
4.209 KB
12 May 2025 6.07 PM
root / root
0644
SplitQualifiedNameTests.php
0.819 KB
12 May 2025 6.07 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF