Remove dummycache folder on tear down.
This commit is contained in:
parent
9ecdeb5452
commit
b6a54537b8
1 changed files with 10 additions and 1 deletions
|
@ -30,13 +30,22 @@ public function setUp()
|
||||||
} else {
|
} else {
|
||||||
array_map('unlink', glob(self::$testCacheDir.'/*'));
|
array_map('unlink', glob(self::$testCacheDir.'/*'));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (self::$pages as $page) {
|
foreach (self::$pages as $page) {
|
||||||
file_put_contents(self::$testCacheDir.'/'.$page.'.cache', $page);
|
file_put_contents(self::$testCacheDir.'/'.$page.'.cache', $page);
|
||||||
}
|
}
|
||||||
file_put_contents(self::$testCacheDir.'/intru.der', 'ShouldNotBeThere');
|
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
|
* Purge cached pages
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue