Skip to content

Commit

Permalink
Merge pull request #744 from davedevelopment/fix-risky-tests
Browse files Browse the repository at this point in the history
Fixes all risky tests
  • Loading branch information
davedevelopment committed Jun 22, 2017
2 parents 08cbaaa + 8ef0905 commit c90a172
Show file tree
Hide file tree
Showing 16 changed files with 356 additions and 582 deletions.
6 changes: 4 additions & 2 deletions library/Mockery.php
Expand Up @@ -159,9 +159,11 @@ public static function close()
return;
}

self::$_container->mockery_teardown();
self::$_container->mockery_close();
$container = self::$_container;
self::$_container = null;

$container->mockery_teardown();
$container->mockery_close();
}

/**
Expand Down
Expand Up @@ -70,7 +70,7 @@ protected function purgeMockeryContainer()
{
if ($this->mockeryOpen) {
// post conditions wasn't called, so test probably failed
Mockery::getContainer()->mockery_teardown();
Mockery::close();
}
}
}

0 comments on commit c90a172

Please sign in to comment.