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