public function CrawlerTest::testAddHtmlContentUnsupportedCharset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Tests/CrawlerTest.php \Symfony\Component\DomCrawler\Tests\CrawlerTest::testAddHtmlContentUnsupportedCharset()
@covers Symfony\Component\DomCrawler\Crawler::addHtmlContent
File
- vendor/
symfony/ dom-crawler/ Tests/ CrawlerTest.php, line 109
Class
Namespace
Symfony\Component\DomCrawler\TestsCode
public function testAddHtmlContentUnsupportedCharset() {
$crawler = new Crawler();
$crawler
->addHtmlContent(file_get_contents(__DIR__ . '/Fixtures/windows-1250.html'), 'Windows-1250');
$this
->assertEquals('Žťčýů', $crawler
->filterXPath('//p')
->text());
}