Permalink
Browse files

Fixed cleanString test

Signed-off-by: Darren Hill <dchill42@gmail.com>
  • Loading branch information...
1 parent 34dfb8d commit 11a943e8e87127b8a416c98fab96dae3a66dd0e9 @dchill42 dchill42 committed Feb 27, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/Xylophone/core/Utf8Test.php
@@ -102,10 +102,11 @@ public function testCleanString()
// Mock Utf8 and set up call
$utf8 = $this->getMock('Xylophone\core\Utf8', array('isAscii'), array(), '', false);
$utf8->expects($this->once())->method('isAscii')->will($this->returnValue(false));
+ $utf8->iconv_enabled = true;
// Set up args and call cleanString()
- $str = chr(0xC4).chr(0xA7).chr(0xC7).chr(0xCC).chr(0xCC);
- $clean = 'ħ';
+ $clean = 'hi';
+ $str = $clean.chr(0xC4).chr(0xFF);
$this->assertEquals($clean, $utf8->cleanString($str));
}

0 comments on commit 11a943e

Please sign in to comment.