Beispiel #1
0
 /**
  * @group encoding
  */
 public function testConversionFromJSON()
 {
     $json = '{"a":1,"b":2,"list":[1,2,"foo","bar"]}';
     $bencode = 'd1:ai1e1:bi2e4:listli1ei2e3:foo3:baree';
     $this->assertSame($bencode, B::convertFromJSON($json));
 }