/**
* {@inheritdoc}
* @see PHPUnit_Framework_TestCase::setUp()
*/
protected function setUp()
{
parent::setUp();
$this->container = \Scalr::getContainer();
$this->environment = new \Scalr_Environment();
if (!$this->isSkipFunctionalTests()) {
$this->environment->loadById(\Scalr::config('scalr.phpunit.envid'));
$this->container->environment = $this->environment;
}
}