We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384c144 commit edfbf98Copy full SHA for edfbf98
tests/Rct567/DomQuery/Tests/DomQueryTraversingTreeTest.php
@@ -54,6 +54,7 @@ public function testNext()
54
$dom = new DomQuery('<ul> <li id="a">1</li> nope <li id="b">2</li> </ul>');
55
56
$this->assertEquals('<li id="b">2</li>', (string) $dom->find('#a')->next());
57
+ $this->assertEquals('', (string) $dom->find('#b')->next());
58
}
59
60
/*
@@ -76,6 +77,7 @@ public function testPrev()
76
77
78
79
$this->assertEquals('<li id="a">1</li>', (string) $dom->find('#b')->prev());
80
+ $this->assertEquals('', (string) $dom->find('#a')->prev());
81
82
83
0 commit comments