Skip to content

Commit

Permalink
small addition to nex/prev test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rct567 committed Feb 17, 2019
1 parent 384c144 commit edfbf98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Rct567/DomQuery/Tests/DomQueryTraversingTreeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function testNext()
$dom = new DomQuery('<ul> <li id="a">1</li> nope <li id="b">2</li> </ul>');

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

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

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

/*
Expand Down

0 comments on commit edfbf98

Please sign in to comment.