Skip to content

Commit

Permalink
Fixes all risky tests
Browse files Browse the repository at this point in the history
Kinda
  • Loading branch information
davedevelopment committed Jun 22, 2017
1 parent 08cbaaa commit 8ef0905
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 8ef0905

Please sign in to comment.