public function testSetLatitude() { $latLongObject = new LatLong($this->_xyz); $fluidReturn = $latLongObject->setLatitude($this->_angle); $latitudeValue = $latLongObject->getLatitude(); $this->assertTrue(is_object($latitudeValue)); $this->assertTrue(is_a($latitudeValue, 'Geodetic\\Angle')); $this->assertEquals(12345.6789, $latitudeValue->getValue()); // Test fluid return object $this->assertTrue(is_object($fluidReturn)); // ... of the correct type $this->assertTrue(is_a($fluidReturn, 'Geodetic\\LatLong')); }