publicfunctiontestAssertPageTitleSame() { $this->getCrawlerTester(newCrawler('<html><head><title>Foo'))->assertPageTitleSame('Foo'); $this->expectException(AssertionFailedError::class); $this->expectExceptionMessage('matches selector "title" and has a node matching selector "title" with content "Bar".'); $this->getCrawlerTester(newCrawler('<html><head><title>Foo'))->assertPageTitleSame('Bar'); }