From 70e305a918fcf193009831d4e89aa8c386df3dc4 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 29 Mar 2016 09:24:08 +0200 Subject: Ported / fixed most old tests --- tests/unit/Data/SqlMap/CacheTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/unit/Data/SqlMap/CacheTest.php') diff --git a/tests/unit/Data/SqlMap/CacheTest.php b/tests/unit/Data/SqlMap/CacheTest.php index 3d2ccd41..ce84a031 100644 --- a/tests/unit/Data/SqlMap/CacheTest.php +++ b/tests/unit/Data/SqlMap/CacheTest.php @@ -113,9 +113,9 @@ class CacheTest extends BaseCase $returnedObject = $cache->get($key); - $this->assertIdentical('a', $returnedObject); + $this->assertSame('a', $returnedObject); - $this->assertIdentical(1, $cache->getHitRatio()); + $this->assertSame(1, $cache->getHitRatio()); } @@ -133,9 +133,9 @@ class CacheTest extends BaseCase $wrongKey = new TSqlMapCacheKey('wrongKey'); $returnedObject = $cache->get($wrongKey); - $this->assertNotEqual($value, $returnedObject); + $this->assertNotEquals($value, $returnedObject); $this->assertNull($returnedObject) ; - $this->assertIdentical(0, $cache->getHitRatio()); + $this->assertSame(0, $cache->getHitRatio()); } /** @@ -150,13 +150,13 @@ class CacheTest extends BaseCase $cache->set($key, $value); $returnedObject = $cache->get($key); - $this->assertIdentical($value, $returnedObject); + $this->assertSame($value, $returnedObject); $wrongKey = new TSqlMapCacheKey('wrongKey'); $returnedObject = $cache->get($wrongKey); - $this->assertNotEqual($value, $returnedObject); + $this->assertNotEquals($value, $returnedObject); $this->assertNull($returnedObject) ; - $this->assertIdentical(0.5, $cache->getHitRatio()); + $this->assertSame(0.5, $cache->getHitRatio()); } } -- cgit v1.2.3