public function testFetchTitle() { $this->setExpectedException('\\InvalidArgumentException'); $crawler = new AmazonCrawler($this->clientMock, $this->loggerMock, 'ABC123', 'XX'); $this->assertEquals('Wishlist Title', $crawler->crawlTitle()); }