|
|
@ -16,7 +16,6 @@ abstract class DatabaseTestCase extends TestCase |
|
|
|
protected function setUp() |
|
|
|
protected function setUp() |
|
|
|
{ |
|
|
|
{ |
|
|
|
parent::setUp(); |
|
|
|
parent::setUp(); |
|
|
|
$this->mockApplication(); |
|
|
|
|
|
|
|
$databases = $this->getParam('databases'); |
|
|
|
$databases = $this->getParam('databases'); |
|
|
|
$this->database = $databases[$this->driverName]; |
|
|
|
$this->database = $databases[$this->driverName]; |
|
|
|
$pdo_database = 'pdo_'.$this->driverName; |
|
|
|
$pdo_database = 'pdo_'.$this->driverName; |
|
|
@ -24,6 +23,7 @@ abstract class DatabaseTestCase extends TestCase |
|
|
|
if (!extension_loaded('pdo') || !extension_loaded($pdo_database)) { |
|
|
|
if (!extension_loaded('pdo') || !extension_loaded($pdo_database)) { |
|
|
|
$this->markTestSkipped('pdo and pdo_'.$pdo_database.' extension are required.'); |
|
|
|
$this->markTestSkipped('pdo and pdo_'.$pdo_database.' extension are required.'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$this->mockApplication(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected function tearDown() |
|
|
|
protected function tearDown() |
|
|
@ -31,6 +31,7 @@ abstract class DatabaseTestCase extends TestCase |
|
|
|
if ($this->db) { |
|
|
|
if ($this->db) { |
|
|
|
$this->db->close(); |
|
|
|
$this->db->close(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$this->destroyApplication(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|