diff options
author | Matt Farina <[email protected]> | 2013-04-29 15:45:40 -0500 |
---|---|---|
committer | Matt Farina <[email protected]> | 2013-04-29 15:45:40 -0500 |
commit | 56d9b965f6d81f540a75786fae3800fc513985d6 (patch) | |
tree | 166bcefd338e8db3a5f1bdd27175dcd0014534c2 /test/HTML5/Serializer/TraverserTest.php | |
parent | be7f40d38223cf6cf4aa1ce180de9e3bd36672c5 (diff) |
Moved the traverser unary tests to the elements class.
Diffstat (limited to 'test/HTML5/Serializer/TraverserTest.php')
-rw-r--r-- | test/HTML5/Serializer/TraverserTest.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/HTML5/Serializer/TraverserTest.php b/test/HTML5/Serializer/TraverserTest.php index 665f318..56fa4e1 100644 --- a/test/HTML5/Serializer/TraverserTest.php +++ b/test/HTML5/Serializer/TraverserTest.php @@ -44,24 +44,4 @@ class TraverserTest extends \HTML5\Tests\TestCase { $this->assertFalse($method->invoke($t, $tag), 'Block test failed on: ' . $tag); } } - - public function testIsUnary() { - $elements = array( 'area', 'base', 'basefont', 'bgsound', 'br', 'col', - 'command', 'embed', 'frame', 'hr', 'img', - ); - - // Mocking the required input because there is no checking. - $t = new Traverser('', ''); - $method = $this->getProtectedMethod('isUnary'); - - foreach ($elements as $element) { - $this->assertTrue($method->invoke($t, $element), 'Unary test failed on: ' . $element); - } - - $nonblocks = array('span', 'a', 'div'); - foreach ($nonblocks as $tag) { - $this->assertFalse($method->invoke($t, $tag), 'Unary test failed on: ' . $tag); - } - } - }
\ No newline at end of file |