Skip to content

Commit

Permalink
fix(tests) replace use of iconv in SearchTestCase.php
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Jan 24, 2024
1 parent 33bebf2 commit d18c124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/SearchTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function testUtf8AnalyzerKnowsToHandleOtherEncodingsWorks()
$analyzer = new Doctrine_Search_Analyzer_Utf8();

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

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

0 comments on commit d18c124

Please sign in to comment.