publicfunctiontestAssertAnySelectorTextNotContains() { $this->getCrawlerTester(newCrawler('<ul><li>Bar</li><li>Baz'))->assertAnySelectorTextNotContains('ul li', 'Foo'); $this->expectException(AssertionFailedError::class); $this->expectExceptionMessage('matches selector "ul li" and the text of any node matching selector "ul li" does not contain "Foo".'); $this->getCrawlerTester(newCrawler('<ul><li>Bar</li><li>Foo'))->assertAnySelectorTextNotContains('ul li', 'Foo'); }