1
0
mirror of synced 2025-02-02 13:31:45 +03:00

If no connection was enstablished, skip the tearDown operations

This commit is contained in:
Marco Pivetta 2017-08-11 22:56:02 +02:00
parent 767577cec6
commit efa058bd8f
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -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();