Exemplo n.º 1
0
    public function testCanScrapeLink()
    {
        $testString = '<div><a href="alink.com" >
	                                        A Link
        </a></div>';
        $testOutcome = 'alink.com';
        $productListItemScraper = new ProductListItemScraper($testString);
        $this->assertEquals($testOutcome, $productListItemScraper->scrapeLink());
    }