示例#1
0
 public function testDoesExecuteResultIsObject()
 {
     $config = ConfigDistributor::getInstance()->getConfig();
     $allegroApi = new AllegroApi($config->login, $config->hashPassword, $config->apikey, $config->sandbox, $config->countryCode);
     $result = $allegroApi->getCountries();
     $this->assertEquals(true, is_object($result));
 }
 public function testDoesExecuteResultIsObject()
 {
     //config
     $config = ConfigDistributor::getInstance()->getConfig();
     //create object
     $allegroApi = new AllegroApi($config);
     //execute remote function
     $result = $allegroApi->getCountries();
     $this->assertEquals(true, is_object($result));
 }