public function testGetMidpoint() { $latLongObject = new LatLong($this->_xyz); $destinationObject = new LatLong($this->_zyx); $position = $latLongObject->getMidpoint($destinationObject); $this->assertTrue(is_object($position)); $this->assertTrue(is_a($position, 'Geodetic\\LatLong')); }