Remove dummycache folder on tear down.
This commit is contained in:
parent
9ecdeb5452
commit
b6a54537b8
1 changed files with 10 additions and 1 deletions
|
@ -37,6 +37,15 @@ public function setUp()
|
|||
file_put_contents(self::$testCacheDir.'/intru.der', 'ShouldNotBeThere');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove dummycache folder after each tests.
|
||||
*/
|
||||
public function tearDown()
|
||||
{
|
||||
array_map('unlink', glob(self::$testCacheDir.'/*'));
|
||||
rmdir(self::$testCacheDir);
|
||||
}
|
||||
|
||||
/**
|
||||
* Purge cached pages
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue