You are here

public function CrawlerTest::testAddHtmlContentUnsupportedCharset 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::testAddHtmlContentUnsupportedCharset()

@covers Symfony\Component\DomCrawler\Crawler::addHtmlContent

File

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

Class

CrawlerTest

Namespace

Symfony\Component\DomCrawler\Tests

Code

public function testAddHtmlContentUnsupportedCharset() {
  $crawler = new Crawler();
  $crawler
    ->addHtmlContent(file_get_contents(__DIR__ . '/Fixtures/windows-1250.html'), 'Windows-1250');
  $this
    ->assertEquals('Žťčýů', $crawler
    ->filterXPath('//p')
    ->text());
}