Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3377' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jan 14, 2013
2 parents 0eef13a + f638152 commit 0e8bebe
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/StringWrapper/CommonStringWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,22 +135,6 @@ public function testConvert($encoding, $convertEncoding, $str, $expected)
$this->assertSame($str, $result);
}

public function testConvertDontSubstringsOnInvalidCharacter()
{
$wrapper = $this->getWrapper('UTF-8', 'ASCII');
if (!$wrapper) {
$this->markTestSkipped("Converting UTF-8 to ASCII not supported");
}

// NOTE: This call could trigger a notice/warning/error
// but that isn't part of this test
ErrorHandler::start(E_NOTICE);
$result = $wrapper->convert($wrapper->convert("foo \xDEx bar"), true);
ErrorHandler::stop();

$this->assertSame("foo x bar", $result);
}

public function wordWrapProvider()
{
return array(
Expand Down

0 comments on commit 0e8bebe

Please sign in to comment.