예제 #1
0
 public function testToJson()
 {
     $this->assertEquals('{"foo1":"bar1","foo2":"bar2"}', $this->properties->toJson());
 }
예제 #2
0
파일: MapTest.php 프로젝트: haldayne/boost
 /** @dataProvider provides_valid_collection */
 public function test_toJson($collection, array $array)
 {
     $c = new Map($collection);
     $this->assertSame(json_encode($array), $c->toJson());
 }