Esempio n. 1
0
 public function testRetrieveAirport()
 {
     echo '<h3>Core API Tests</h3>';
     echo "<strong>Checking geonames server</strong><br />";
     Config::Set('AIRPORT_LOOKUP_SERVER', 'geonames');
     OperationsData::RemoveAirport('PANC');
     $return = OperationsData::RetrieveAirportInfo('PANC');
     $this->assertNotEqual($return, false);
     echo "<strong>Checking phpVMS API server</strong><br />";
     Config::Set('AIRPORT_LOOKUP_SERVER', 'phpvms');
     Config::Set('PHPVMS_API_SERVER', 'http://apidev.phpvms.net');
     OperationsData::RemoveAirport('PANC');
     $return = OperationsData::RetrieveAirportInfo('PANC');
     $this->assertNotEqual($return, false);
 }