Beispiel #1
0
 /**
  * @group ZF-8663
  */
 public function testBuiltinJSONEncoderWillProperlyEncodeSolidusInStringValues()
 {
     $source = "</foo><foo>bar</foo>";
     $target = '"<\\/foo><foo>bar<\\/foo>"';
     // first test ext/json
     JSON\JSON::$useBuiltinEncoderDecoder = true;
     $this->assertEquals($target, JSON\JSON::encode($source));
 }