Skip to content

Commit edfbf98

Browse files
committed
small addition to nex/prev test
1 parent 384c144 commit edfbf98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Rct567/DomQuery/Tests/DomQueryTraversingTreeTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function testNext()
5454
$dom = new DomQuery('<ul> <li id="a">1</li> nope <li id="b">2</li> </ul>');
5555

5656
$this->assertEquals('<li id="b">2</li>', (string) $dom->find('#a')->next());
57+
$this->assertEquals('', (string) $dom->find('#b')->next());
5758
}
5859

5960
/*
@@ -76,6 +77,7 @@ public function testPrev()
7677
$dom = new DomQuery('<ul> <li id="a">1</li> nope <li id="b">2</li> </ul>');
7778

7879
$this->assertEquals('<li id="a">1</li>', (string) $dom->find('#b')->prev());
80+
$this->assertEquals('', (string) $dom->find('#a')->prev());
7981
}
8082

8183
/*

0 commit comments

Comments
 (0)