You are here

public function CrawlerTest::getBaseTagData in Zircon Profile 8

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

File

vendor/symfony/dom-crawler/Tests/CrawlerTest.php, line 962

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function getBaseTagData() {
  return array(
    array(
      'http://base.com',
      'link',
      'http://base.com/link',
    ),
    array(
      '//base.com',
      'link',
      'https://base.com/link',
      'https://domain.com',
      '<base> tag can use a schema-less URL',
    ),
    array(
      'path/',
      'link',
      'https://domain.com/path/link',
      'https://domain.com',
      '<base> tag can set a path',
    ),
    array(
      'http://base.com',
      '#',
      'http://base.com#',
      'http://domain.com/path/link',
      '<base> tag does work with links to an anchor',
    ),
    array(
      'http://base.com',
      '',
      'http://base.com',
      'http://domain.com/path/link',
      '<base> tag does work with empty links',
    ),
  );
}