Update tests to remove the dependancy to configuration
Change the databases to be unique by test file git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2670 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -6,12 +6,10 @@
|
||||
/** Test the cache.php file */
|
||||
class test_cachefile extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function __construct ()
|
||||
public function testInit ()
|
||||
{
|
||||
// Removing the cache file if it previously exists
|
||||
$c = new cachefile ();
|
||||
$c->directory = "/tmp/cache";
|
||||
$res = $c->delete ("id");
|
||||
exec ("rm -rf /tmp/cache");
|
||||
}
|
||||
|
||||
// Unknown cache file : return FALSE
|
||||
@@ -41,7 +39,7 @@ class test_cachefile extends PHPUnit_Framework_TestCase
|
||||
$this->assertSame ("DATA_TO_STORE", $res);
|
||||
}
|
||||
|
||||
// Sleep 3s to expire the cache
|
||||
// Sleep 4s to expire the cache
|
||||
public function testWait1 ()
|
||||
{
|
||||
sleep (4);
|
||||
|
||||
Reference in New Issue
Block a user