Inheritance: extends PHPUnit_Framework_TestCase
Beispiel #1
0
 public function tearDown()
 {
     if (is_dir($this->path)) {
         $this->rmdir($this->path);
     }
     parent::tearDown();
 }
Beispiel #2
0
 public function tearDown()
 {
     if (class_exists('MongoClient')) {
         $client = new MongoClient();
         $client->selectDB($this->testDbName)->drop();
     }
     parent::tearDown();
 }
Beispiel #3
0
 /**
  * Make sure we have the correct config available
  */
 public function setUp()
 {
     foreach (['AWS_S3_KEY', 'AWS_S3_SECRET', 'AWS_S3_BUCKET'] as $key) {
         if (empty($GLOBALS[$key])) {
             $this->markTestSkipped('This test needs the ' . $key . ' value to be set in phpunit.xml');
         }
     }
     $client = S3Client::factory(['key' => $GLOBALS['AWS_S3_KEY'], 'secret' => $GLOBALS['AWS_S3_SECRET']]);
     $client->clearBucket($GLOBALS['AWS_S3_BUCKET']);
     parent::setUp();
 }
Beispiel #4
0
 public function tearDown()
 {
     $this->pdo = null;
     parent::tearDown();
 }