25 lines
613 B
PHP
25 lines
613 B
PHP
<?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));
|
|
}
|
|
}
|