Mockery\Container::mockery_teardown PHP Method

mockery_teardown() public method

Tear down tasks for this container
public mockery_teardown ( ) : void
return void
    public function mockery_teardown()
    {
        try {
            $this->mockery_verify();
        } catch (\Exception $e) {
            $this->mockery_close();
            throw $e;
        }
    }

Usage Example

Exemplo n.º 1
0
 /**
  * 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;
 }
All Usage Examples Of Mockery\Container::mockery_teardown