From f08221a9cd67362d55af66d1f6c4ce636f19aa20 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 25 Jul 2014 16:12:15 +0000 Subject: [PATCH] Update the tests for cachefile git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1555 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/cachefileTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Tests/cachefileTest.php b/Tests/cachefileTest.php index ad5648c..c1a23f2 100644 --- a/Tests/cachefileTest.php +++ b/Tests/cachefileTest.php @@ -4,19 +4,19 @@ @author Dominique Fournier */ /** Test the cache.php file */ -class test_cacheFile extends PHPUnit_Framework_TestCase +class test_cachefile extends PHPUnit_Framework_TestCase { public function __construct () { // Removing the cache file if it previously exists - $c = new cacheFile (); + $c = new cachefile (); $res = $c->delete ("id"); } // Unknown cache file : return FALSE public function testRead1 () { - $c = new cacheFile (); + $c = new cachefile (); $res = $c->read ("id"); $this->assertFalse ($res); } @@ -24,7 +24,7 @@ class test_cacheFile extends PHPUnit_Framework_TestCase // Write in cache file public function testWrite1 () { - $c = new cacheFile (); + $c = new cachefile (); $res = $c->write ("id","DATA_TO_STORE", 3); $this->assertTrue ($res); } @@ -32,7 +32,7 @@ class test_cacheFile extends PHPUnit_Framework_TestCase // Previous cache file : return DATA_TO_STORE public function testRead2 () { - $c = new cacheFile (); + $c = new cachefile (); $res = $c->read ("id"); $this->assertEquals ("DATA_TO_STORE", $res); } @@ -46,7 +46,7 @@ class test_cacheFile extends PHPUnit_Framework_TestCase // Previous cache file but expired : return false public function testRead3 () { - $c = new cacheFile (); + $c = new cachefile (); $res = $c->read ("id"); $this->assertFalse ($res); } @@ -54,7 +54,7 @@ class test_cacheFile extends PHPUnit_Framework_TestCase // Write in cache file public function testWrite2 () { - $c = new cacheFile (); + $c = new cachefile (); $res = $c->write ("id","DATA_TO_STORE", 30); $this->assertTrue ($res); } @@ -68,14 +68,14 @@ class test_cacheFile extends PHPUnit_Framework_TestCase // Previous cache in time file but lock : return content after lock timeout public function testRead4 () { - $c = new cacheFile (); + $c = new cachefile (); $res = $c->read ("id"); $this->assertEquals ("DATA_TO_STORE", $res); } public function testDel1 () { - $c = new cacheFile (); + $c = new cachefile (); $res = $c->delete ("id"); } }