public static function setUpBeforeClass()
 {
     self::$_api = new CCAPI('https://api.cloudcontrolled.dev');
     self::$_api->createUser(self::$_userName, self::$_email, self::$_password);
     $imap = new CCImap(self::$_email, self::$_imapPassword);
     $activationCode = $imap->getNewestActivationCode();
     try {
         self::$_api->activateUser(self::$_userName, $activationCode);
     } catch (ForbiddenError $e) {
         $imap->deleteAll();
     }
     self::$_api->createAndSetToken(self::$_email, self::$_password);
 }
 private function _createuser()
 {
     $result = $this->_api->createUser($this->_userName, $this->_email, $this->_password);
     $imap = new CCImap($this->_email, $this->_imapPassword);
     $activationCode = $imap->getNewestActivationCode();
     $this->_api->activateUser($this->_userName, $activationCode);
     $this->_api->createAndSetToken($this->_email, $this->_password);
 }