/** * @depends testCreateFactoryInstance * @expectedException NetglueTripAdvisor\Exception\RuntimeException * @expectedExceptionMessage Failed to load remote source HTML */ public function testExceptionThrownFor404(Scraper $scraper) { $scraper->getHttpClient()->setUri('https://www.google.com/this-file-does-not-exist'); $scraper->getHtml(); }