replace xml_tag with HTMLElement

This commit is contained in:
Shish
2020-10-24 13:24:28 +01:00
parent c29fe0583f
commit 9b878d98d6
3 changed files with 21 additions and 43 deletions

View File

@ -76,14 +76,6 @@ class PolyfillsTest extends TestCase
$this->assertEquals(clamp(15, 5, 10), 10);
}
public function test_xml_tag()
{
$this->assertEquals(
"<test foo=\"bar\" >\n<cake />\n</test>\n",
xml_tag("test", ["foo"=>"bar"], ["cake"])
);
}
public function test_truncate()
{
$this->assertEquals(truncate("test words", 10), "test words");