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 ef523d5 commit f97cd90Copy full SHA for f97cd90
Tests/CrawlerTest.php
@@ -886,6 +886,8 @@ public function testChildren()
886
$crawler = new Crawler('<p></p>');
887
$crawler->filter('p')->children();
888
$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');
891
} catch (\PHPUnit_Framework_Error_Notice $e) {
892
$this->fail('->children() does not trigger a notice if the node has no children');
893
}
0 commit comments