Skip to content

Commit 566aaa2

Browse files
rikvdhpaquettg
authored andcommitted
Add a failing test
1 parent 5c7fe62 commit 566aaa2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/DomTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,4 +483,14 @@ public function testCaseSensitivity()
483483
$FooBar = $dom->find('FooBar');
484484
$this->assertEquals('asdf', $FooBar->Attribute);
485485
}
486+
487+
public function testEmptyAttribute()
488+
{
489+
$str = '<ul class="summary"><li class></li>blah<li class="foo">what</li></ul>';
490+
$dom = new Dom();
491+
$dom->load($str);
492+
493+
$items = $dom->find('.summary .foo');
494+
$this->assertEquals(1, count($items));
495+
}
486496
}

0 commit comments

Comments
 (0)