summaryrefslogtreecommitdiff
path: root/tests/unit/Data/SqlMap/CacheTest.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:24:08 +0200
committerFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:24:08 +0200
commit70e305a918fcf193009831d4e89aa8c386df3dc4 (patch)
tree8cc49f253f29636ddd623aa2c2b98835300604f0 /tests/unit/Data/SqlMap/CacheTest.php
parent55df8dac44f54a305e8bd7e50ef63f76725d2333 (diff)
Ported / fixed most old tests
Diffstat (limited to 'tests/unit/Data/SqlMap/CacheTest.php')
-rw-r--r--tests/unit/Data/SqlMap/CacheTest.php14
1 files changed, 7 insertions, 7 deletions
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());
}
}