Skip to content

Commit

Permalink
Fixed cleanString test
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Hill <dchill42@gmail.com>
  • Loading branch information
dchill42 committed Feb 27, 2014
1 parent 34dfb8d commit 11a943e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Xylophone/core/Utf8Test.php
Expand Up @@ -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));
}

Expand Down

0 comments on commit 11a943e

Please sign in to comment.