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.
2 parents d39b6e5 + f97cd90 commit 24b1a3fCopy full SHA for 24b1a3f
Tests/CrawlerTest.php
@@ -946,6 +946,8 @@ public function testChildren()
946
$crawler = new Crawler('<p></p>');
947
$crawler->filter('p')->children();
948
$this->assertTrue(true, '->children() does not trigger a notice if the node has no children');
949
+ } catch (\PHPUnit\Framework\Error\Notice $e) {
950
+ $this->fail('->children() does not trigger a notice if the node has no children');
951
} catch (\PHPUnit_Framework_Error_Notice $e) {
952
$this->fail('->children() does not trigger a notice if the node has no children');
953
}
0 commit comments