public function tearDown() { if ($this->pdo) { $this->pdo->query('DROP TABLE IF EXISTS imagevariations'); $this->pdo = null; } parent::tearDown(); }