Symfony\Component\DomCrawler\Tests\CrawlerTest::getBaseTagData PHP Method

getBaseTagData() public method

public getBaseTagData ( )
    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'),
        );
    }
CrawlerTest