コード例 #1
0
ファイル: LatLongTest.php プロジェクト: markbaker/phpgeodetic
 public function testSetZValue()
 {
     $latLongObject = new LatLong($this->_xyz);
     $fluidReturn = $latLongObject->setHeight($this->_distance);
     $heightValue = $latLongObject->getHeight();
     $this->assertTrue(is_object($heightValue));
     $this->assertTrue(is_a($heightValue, 'Geodetic\\Distance'));
     $this->assertEquals(12345.6789, $heightValue->getValue());
     //    Test fluid return object
     $this->assertTrue(is_object($fluidReturn));
     //    ... of the correct type
     $this->assertTrue(is_a($fluidReturn, 'Geodetic\\LatLong'));
 }