Пример #1
0
 /**
  * Test what happens when we connect with bad credentials.
  * @expectedException CException
  */
 public function testTestConnectionBadCredentials()
 {
     self::$iio->disconnect();
     self::$iio->token = "faulty_token";
     self::$iio->connect();
     $testResult = self::$iio->testConnection();
 }
Пример #2
0
 /**
  * Deletes all values from cache.
  * This is the implementation of the method declared in the parent class.
  * @return boolean Whether the flush operation was successful.
  */
 protected function flushValues()
 {
     try {
         $this->_yiiron->cacheClear($this->yiironCacheName);
         return true;
     } catch (Exception $e) {
         Yii::log($e->getMessage(), CLogger::LEVEL_ERROR, "ext.yiiron");
         return false;
     }
 }