/** * @expectedException \OutOfBoundsException * @expectedExceptionMessage Crawler "foo" is not registered */ public function testMissingCrawler() { $this->factory->getCrawler('foo'); }
/** * @param string $crawler * * @return CrawlerInterface */ protected function findCrawler($crawler) { return $this->factory->getCrawler($crawler); }