Skip to content

Commit f97cd90

Browse files
peterrehmnicolas-grekas
authored andcommitted
Further refactorings to PHPUnit namespaces
1 parent ef523d5 commit f97cd90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/CrawlerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,8 @@ public function testChildren()
886886
$crawler = new Crawler('<p></p>');
887887
$crawler->filter('p')->children();
888888
$this->assertTrue(true, '->children() does not trigger a notice if the node has no children');
889+
} catch (\PHPUnit\Framework\Error\Notice $e) {
890+
$this->fail('->children() does not trigger a notice if the node has no children');
889891
} catch (\PHPUnit_Framework_Error_Notice $e) {
890892
$this->fail('->children() does not trigger a notice if the node has no children');
891893
}

0 commit comments

Comments
 (0)