Пример #1
0
 public function testErrorNoMethodSet()
 {
     try {
         $oGandi = new GandiAPITest(self::getApiKey());
         $oGandi->version();
         $this->assertTrue(false);
     } catch (GandiException $e) {
         $this->assertTrue(true);
         $this->assertEquals(GandiException::ERROR_PREFIX_NOT_SET, $e->getMessage());
     }
 }