public mockery_close ( ) : void | ||
return | void |
public function mockery_close()
{
foreach ($this->_mocks as $mock) {
$mock->mockery_teardown();
}
$this->_mocks = array();
}
/** * Static shortcut to closing up and verifying all mocks in the global * container, and resetting the container static variable to null * * @return void */ public static function close() { if (is_null(self::$_container)) { return; } self::$_container->mockery_teardown(); self::$_container->mockery_close(); self::$_container = null; }