1
0
Fork 0

Merge remote-tracking branch 'sylvainfilteau/master'

pull/2790/head
Jordi Boggiano 2014-03-06 10:25:24 +01:00
commit d90fec3d44
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ class JsonFormatterTest extends \PHPUnit_Framework_TestCase
*/
public function testUnicodeWithPrependedSlash()
{
if (!extension_loaded('mbstring')) {
$this->markTestSkipped('Test requires the mbstring extension');
}
$data = '"' . chr(92) . chr(92) . chr(92) . 'u0119"';
$encodedData = JsonFormatter::format($data, true, true);
$expected = '34+92+92+196+153+34';