Skip to content

Commit cc51a4f

Browse files
connorhuthePanz
authored andcommitted
fix(tests) replace use of iconv in SearchTestCase.php
1 parent 4f020ae commit cc51a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/SearchTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public function testUtf8AnalyzerKnowsToHandleOtherEncodingsWorks()
229229
$analyzer = new Doctrine_Search_Analyzer_Utf8();
230230

231231
// convert our test string to iso8859-15
232-
$iso = iconv('UTF-8','ISO8859-15', 'un éléphant ça trompe énormément');
232+
$iso = mb_convert_encoding('un éléphant ça trompe énormément', 'ISO-8859-15', 'UTF-8');
233233

234234
$words = $analyzer->analyze($iso, 'ISO8859-15');
235235
$this->assertEqual($words[1], 'éléphant');

0 commit comments

Comments
 (0)