public function testJson() { $expected = '{"type":"Point","coordinates":[5,5]}'; $point = new Point(array(5, 5)); $this->assertEquals($expected, $point->toJson()); }