php-8.3.3-mac/lib/php/pear/test/XML_Util/tests/CreateEndElementTests.php

25 lines
613 B
PHP
Raw Permalink Normal View History

2024-03-11 14:31:54 +03:00
<?php
class CreateEndElementTests extends AbstractUnitTests
{
/**
* @covers XML_Util::createEndElement()
*/
public function testCreateEndElementBasicUsage()
{
$original = "myTag";
$expected = "</myTag>";
$this->assertEquals($expected, XML_Util::createEndElement($original));
}
/**
* @covers XML_Util::createEndElement()
*/
public function testCreateEndElementWithNamespacedTag()
{
$original = "myNs:myTag";
$expected = "</myNs:myTag>";
$this->assertEquals($expected, XML_Util::createEndElement($original));
}
}