Scalr\Tests\Service\AwsTestCase::setUp PHP Method

setUp() protected method

See also: 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

Example #1
0
 /**
  * {@inheritdoc}
  * @see PHPUnit_Framework_TestCase::setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     if (!$this->isSkipFunctionalTests()) {
         $this->aws = $this->getEnvironment()->aws(self::REGION);
         $this->assertInstanceOf(self::CLASS_AWS, $this->aws);
     }
 }
All Usage Examples Of Scalr\Tests\Service\AwsTestCase::setUp