Skip to content

Commit

Permalink
If no connection was enstablished, skip the tearDown operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Aug 11, 2017
1 parent 767577c commit efa058b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Doctrine/Tests/OrmFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ protected function useModelSet($setName)
*/
protected function tearDown()
{
// In case test is skipped, tearDown is called, but no setup may have run
if ( ! $conn) {
return;
}

$conn = static::$_sharedConn;
$platform = $conn->getDatabasePlatform();

Expand Down

0 comments on commit efa058b

Please sign in to comment.