mockery_close() public method

Reset the container to its original state
public mockery_close ( ) : void
return void
Beispiel #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;
 }
Beispiel #2
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()
 {
     foreach (self::$_filesToCleanUp as $fileName) {
         @unlink($fileName);
     }
     if (is_null(self::$_container)) {
         return;
     }
     self::$_container->mockery_teardown();
     self::$_container->mockery_close();
     self::$_container = null;
 }
 protected function tearDown()
 {
     $this->container->mockery_close();
 }
Beispiel #4
0
 public function teardown()
 {
     $this->container->mockery_close();
 }