Replacement of assertEquals() to assertSame()
This commit is contained in:
4
tests/cache/CacheKeyTest.php
vendored
4
tests/cache/CacheKeyTest.php
vendored
@ -49,7 +49,7 @@ class CacheKeyTest extends PHPUnit_Framework_TestCase
|
||||
$getExpireMethod = new ReflectionMethod('CacheKey', 'getExpire');
|
||||
$getExpireMethod->setAccessible(TRUE);
|
||||
|
||||
$this->assertEquals(100, $getExpireMethod->invoke($this->cache));
|
||||
$this->assertSame(100, $getExpireMethod->invoke($this->cache));
|
||||
}
|
||||
|
||||
public function testGetSet()
|
||||
@ -66,7 +66,7 @@ class CacheKeyTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
$this->cache = new CacheKey($mockCacher, 'any');
|
||||
$this->cache->set('some');
|
||||
$this->assertEquals('some', $this->cache->get());
|
||||
$this->assertSame('some', $this->cache->get());
|
||||
}
|
||||
|
||||
public function testDel()
|
||||
|
Reference in New Issue
Block a user