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