If no connection was enstablished, skip the tearDown
operations
This commit is contained in:
parent
767577cec6
commit
efa058bd8f
@ -308,6 +308,11 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
|
|||||||
*/
|
*/
|
||||||
protected function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
|
// In case test is skipped, tearDown is called, but no setup may have run
|
||||||
|
if ( ! $conn) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$conn = static::$_sharedConn;
|
$conn = static::$_sharedConn;
|
||||||
$platform = $conn->getDatabasePlatform();
|
$platform = $conn->getDatabasePlatform();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user