You are here

public function LinkTest::testConstructorWithAnInvalidCurrentUri in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Tests/LinkTest.php \Symfony\Component\DomCrawler\Tests\LinkTest::testConstructorWithAnInvalidCurrentUri()

@expectedException \InvalidArgumentException

File

vendor/symfony/dom-crawler/Tests/LinkTest.php, line 32

Class

LinkTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testConstructorWithAnInvalidCurrentUri() {
  $dom = new \DOMDocument();
  $dom
    ->loadHTML('<html><a href="/foo">foo</a></html>');
  new Link($dom
    ->getElementsByTagName('a')
    ->item(0), 'example.com');
}