Skip to content

Commit 6399a44

Browse files
committed
Merge branch '3.2'
* 3.2: [Routing] Mention minor BC break about UrlGenerator & query strings fixed composer.json fixed composer.json Skip test when iconv extension is missing Fix upgrade notes [Config] fix dev dependencies Fix bundle commands are not available via find()
2 parents 872fd12 + 1638c75 commit 6399a44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/CrawlerTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,13 @@ public function testAddContent()
238238
$crawler = new Crawler();
239239
$crawler->addContent('<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><span>中文</span></html>');
240240
$this->assertEquals('中文', $crawler->filterXPath('//span')->text(), '->addContent() guess wrong charset');
241+
}
241242

243+
/**
244+
* @requires extension iconv
245+
*/
246+
public function testAddContentNonUtf8()
247+
{
242248
$crawler = new Crawler();
243249
$crawler->addContent(iconv('UTF-8', 'SJIS', '<html><head><meta charset="Shift_JIS"></head><body>日本語</body></html>'));
244250
$this->assertEquals('日本語', $crawler->filterXPath('//body')->text(), '->addContent() can recognize "Shift_JIS" in html5 meta charset tag');

0 commit comments

Comments
 (0)