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