public function CrawlerTest::testBaseTag in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/CrawlerTest.php \Symfony\Component\DomCrawler\Tests\CrawlerTest::testBaseTag()
@dataProvider getBaseTagData
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 956
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testBaseTag($baseValue, $linkValue, $expectedUri, $currentUri = null, $description = null) {
$crawler = new Crawler('<html><base href="' . $baseValue . '"><a href="' . $linkValue . '"></a></html>', $currentUri);
$this
->assertEquals($expectedUri, $crawler
->filterXPath('//a')
->link()
->getUri(), $description);
}