예제 #1
0
 /**
  * Test shape naming.
  *
  * @return void
  */
 public function testShapeName()
 {
     $obj = new ShapeRecord(1);
     $this->assertEquals('Point', $obj->getShapeName());
     $obj = new Shapefile(1);
     $this->assertEquals('Point', $obj->getShapeName());
     $obj = new ShapeRecord(-1);
     $this->assertEquals('Shape -1', $obj->getShapeName());
 }