Exemple #1
0
 public function testToJson()
 {
     $this->assertEquals('{"foo1":"bar1","foo2":"bar2"}', $this->properties->toJson());
 }
Exemple #2
0
 /** @dataProvider provides_valid_collection */
 public function test_toJson($collection, array $array)
 {
     $c = new Map($collection);
     $this->assertSame(json_encode($array), $c->toJson());
 }