Permalink
Browse files

Fix fatal error if container not set and Mockery::close() is called

  • Loading branch information...
1 parent 261eb16 commit 3309d90075ca849367235088c61316cc486b8113 Padraic Brady committed Jun 9, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −0 library/Mockery.php
  2. +3 −3 package.xml
View
@@ -57,6 +57,7 @@ public static function mock()
*/
public static function close()
{
+ if (is_null(self::$_container)) return;
self::$_container->mockery_teardown();
self::$_container->mockery_close();
self::$_container = null;
View
@@ -11,10 +11,10 @@
<active>yes</active>
</lead>
<date>2010-06-09</date>
- <time>19:45:59</time>
+ <time>21:30:59</time>
<version>
- <release>0.6.2</release>
- <api>0.6.2</api>
+ <release>0.6.3</release>
+ <api>0.6.3</api>
</version>
<stability>
<release>stable</release>

0 comments on commit 3309d90

Please sign in to comment.