You are here

public function CrawlerTest::testBaseTag in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

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);
}