Since: 03.12.2012
Author: Vitaliy Demidov (vitaliy@scalr.com)
Inheritance: extends PHPUnit_Framework_TestCase
Esempio n. 1
0
 /**
  * {@inheritdoc}
  * @see PHPUnit_Framework_TestCase::tearDown()
  */
 protected function tearDown()
 {
     $this->env = null;
     $this->user = null;
     error_reporting($this->errorLevel);
     parent::tearDown();
 }
Esempio n. 2
0
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     self::deleteTestVariables();
 }
Esempio n. 3
0
 /**
  * {@inheritdoc}
  * @see Scalr\Tests.TestCase::getFixturesDirectory()
  */
 public function getFixturesDirectory()
 {
     return parent::getFixturesDirectory() . '/Service/Aws';
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  * @see Scalr\Tests.TestCase::getFixturesDirectory()
  */
 public function getFixturesDirectory()
 {
     return parent::getFixturesDirectory() . '/System/Config';
 }
Esempio n. 5
0
 /**
  * {@inheritdoc}
  * @see \Scalr\Tests\TestCase::getFixturesDirectory()
  */
 public function getFixturesDirectory()
 {
     return parent::getFixturesDirectory() . '/Model/Entity';
 }
Esempio n. 6
0
 /**
  * {@inheritdoc}
  * @see Scalr\Tests.TestCase::getFixturesDirectory()
  */
 public function getFixturesDirectory()
 {
     return parent::getFixturesDirectory() . '/Service/OpenStack';
 }
Esempio n. 7
0
 /**
  * {@inheritdoc}
  * @see Scalr\Tests.TestCase::getFixturesDirectory()
  */
 public function getFixturesDirectory()
 {
     return parent::getFixturesDirectory() . '/Util';
 }
Esempio n. 8
0
 /**
  * {@inheritdoc}
  * @see Scalr\Tests.TestCase::tearDown()
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
Esempio n. 9
0
 /**
  * Tears down the fixture - unset Azure instance.
  *
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     unset($this->azure, $this->testEnv);
     parent::tearDown();
 }
Esempio n. 10
0
 /**
  * {@inheritdoc}
  * @see Scalr\Tests.WebTestCase::setUp()
  */
 protected function setUp()
 {
     parent::setUp();
     if (static::isSkippedFunctionalTest()) {
         $this->markTestSkipped();
     }
     if (!\Scalr::getContainer()->config('scalr.system.api.enabled')) {
         $this->markTestSkipped('API is not enabled. See scalr.system.api.enabled');
     }
 }
Esempio n. 11
0
 /**
  * {@inheritdoc}
  * @see \Scalr\Tests\TestCase::getFixturesDirectory()
  */
 public function getFixturesDirectory()
 {
     return parent::getFixturesDirectory() . '/DataType/Iterator';
 }