public function testSerialization() { $coordinates = array(1, 1); $point = new Point($coordinates); $expected = array('type' => 'Point', 'coordinates' => $coordinates); $this->assertSame('Point', $point->getType()); $this->assertSame($coordinates, $point->getCoordinates()); $this->assertSame($expected, $point->jsonSerialize()); }