Skip to content

Commit 24b1a3f

Browse files
Merge branch '2.7' into 2.8
* 2.7: Further refactorings to PHPUnit namespaces resolve parameters in definition classes
2 parents d39b6e5 + f97cd90 commit 24b1a3f

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
@@ -946,6 +946,8 @@ public function testChildren()
946946
$crawler = new Crawler('<p></p>');
947947
$crawler->filter('p')->children();
948948
$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');
949951
} catch (\PHPUnit_Framework_Error_Notice $e) {
950952
$this->fail('->children() does not trigger a notice if the node has no children');
951953
}

0 commit comments

Comments
 (0)