Scalr\Tests\Service\OpenStack\OpenStackTestCase::setUp PHP Метод

setUp() защищенный Метод

См. также: PHPUnit_Framework_TestCase::setUp()
protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        $this->container = \Scalr::getContainer();
        $this->environment = new \Scalr_Environment();
        if (!static::isSkippedFunctionalTest()) {
            $this->environment->loadById(\Scalr::config('scalr.phpunit.envid'));
            $this->container->environment = $this->environment;
        }
    }

Usage Example

Пример #1
0
 /**
  * {@inheritdoc}
  * @see Scalr\Tests\Service\OpenStack.OpenStackTestCase::setUp()
  */
 protected function setUp()
 {
     parent::setUp();
 }