From 93df3656bbb4b7718a177c257fa44f8c981c4c5a Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Sat, 9 May 2015 10:18:45 +0200 Subject: Improved boolean attribute handling --- test/HTML5/Serializer/OutputRulesTest.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/HTML5/Serializer/OutputRulesTest.php') diff --git a/test/HTML5/Serializer/OutputRulesTest.php b/test/HTML5/Serializer/OutputRulesTest.php index aa2e0c5..72d1cd3 100644 --- a/test/HTML5/Serializer/OutputRulesTest.php +++ b/test/HTML5/Serializer/OutputRulesTest.php @@ -460,8 +460,10 @@ class OutputRulesTest extends \Masterminds\HTML5\Tests\TestCase array(''), array(''), array(''), + array(''), + array('
'), array(''), - array('
foo
'), + array('
'), array(''), ); } @@ -482,7 +484,11 @@ class OutputRulesTest extends \Masterminds\HTML5\Tests\TestCase $m->invoke($r, $node); $content = stream_get_contents($stream, - 1, 0); - $this->assertContains($content, $html); + + $html = preg_replace('~<[a-z]+(.*)>~', '\1', $html); + $html = preg_replace('~<[a-z]+(.*)/?>~', '\1', $html); + + $this->assertEquals($content, $html); } -- cgit v1.2.3