protected function getEnvironment() { if (!isset($this->env)) { if (empty($this->_testEnvId)) { $this->_testEnvId = \Scalr::config('scalr.phpunit.envid'); } $this->env = \Scalr_Environment::init()->loadById($this->_testEnvId); } return $this->env; }