public function LinkTest::testGetUri in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/LinkTest.php \Symfony\Component\DomCrawler\Tests\LinkTest::testGetUri()
@dataProvider getGetUriTests
File
- vendor/
symfony/ dom-crawler/ Tests/ LinkTest.php, line 68
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testGetUri($url, $currentUri, $expected) {
$dom = new \DOMDocument();
$dom
->loadHTML(sprintf('<html><a href="%s">foo</a></html>', $url));
$link = new Link($dom
->getElementsByTagName('a')
->item(0), $currentUri);
$this
->assertEquals($expected, $link
->getUri());
}