PHPUnit_Extension_FunctionMocker::tearDown PHP Method

tearDown() public static method

public static tearDown ( )
    public static function tearDown()
    {
        unset($GLOBALS['__PHPUNIT_EXTENSION_FUNCTIONMOCKER']);
    }

Usage Example

Ejemplo n.º 1
0
 public function tearDown()
 {
     \PHPUnit_Extension_FunctionMocker::tearDown();
     $fs = new Filesystem();
     if ($fs->exists(PHPUNIT_WEBROOT . '/app/cache/config-cache.json')) {
         $fs->remove(PHPUNIT_WEBROOT . '/app/cache/config-cache.json');
     }
     if ($fs->exists(PHPUNIT_WEBROOT . '/extensions/local/')) {
         $fs->remove(PHPUNIT_WEBROOT . '/extensions/local/');
     }
 }
All Usage Examples Of PHPUnit_Extension_FunctionMocker::tearDown