예제 #1
0
 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());
 }