diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-24 16:47:17 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-24 16:47:17 +0100 |
commit | ef88ceba8c1108aad6a4f437206f205c60fda870 (patch) | |
tree | 707b73619edbb7b6a734358054e4d878f0fe2137 /tests/lib/cache.php | |
parent | 1dac2ba496a0054e9d5383a6babe7401dd2a260c (diff) | |
download | nextcloud-server-ef88ceba8c1108aad6a4f437206f205c60fda870.tar.gz nextcloud-server-ef88ceba8c1108aad6a4f437206f205c60fda870.zip |
drop SimpleTest compatibility
Diffstat (limited to 'tests/lib/cache.php')
-rw-r--r-- | tests/lib/cache.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/cache.php b/tests/lib/cache.php index 1a1287ff135..3dcf39f7d60 100644 --- a/tests/lib/cache.php +++ b/tests/lib/cache.php @@ -6,7 +6,7 @@ * See the COPYING-README file. */ -abstract class Test_Cache extends UnitTestCase { +abstract class Test_Cache extends PHPUnit_Framework_TestCase { /** * @var OC_Cache cache; */ @@ -26,19 +26,19 @@ abstract class Test_Cache extends UnitTestCase { $this->instance->set('value1', $value); $this->assertTrue($this->instance->hasKey('value1')); $received=$this->instance->get('value1'); - $this->assertEqual($value, $received, 'Value recieved from cache not equal to the original'); + $this->assertEquals($value, $received, 'Value recieved from cache not equal to the original'); $value='ipsum lorum'; $this->instance->set('value1', $value); $received=$this->instance->get('value1'); - $this->assertEqual($value, $received, 'Value not overwritten by second set'); + $this->assertEquals($value, $received, 'Value not overwritten by second set'); $value2='foobar'; $this->instance->set('value2', $value2); $received2=$this->instance->get('value2'); $this->assertTrue($this->instance->hasKey('value1')); $this->assertTrue($this->instance->hasKey('value2')); - $this->assertEqual($value, $received, 'Value changed while setting other variable'); - $this->assertEqual($value2, $received2, 'Second value not equal to original'); + $this->assertEquals($value, $received, 'Value changed while setting other variable'); + $this->assertEquals($value2, $received2, 'Second value not equal to original'); $this->assertFalse($this->instance->hasKey('not_set')); $this->assertNull($this->instance->get('not_set'), 'Unset value not equal to null'); |