Skip to content

Commit

Permalink
Do not use deprecated assertIsA
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Nov 11, 2016
1 parent 175503f commit 94572ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Cake/Test/Case/Cache/CacheTest.php
Expand Up @@ -548,10 +548,10 @@ public function testAdd() {
*/
public function testEngineSuccess() {
$actual = Cache::engine();
$this->assertIsA($actual, 'CacheEngine');
$this->assertInstanceOf('CacheEngine', $actual);

$actual = Cache::engine('default');
$this->assertIsA($actual, 'CacheEngine');
$this->assertInstanceOf('CacheEngine', $actual);
}

/**
Expand All @@ -577,6 +577,8 @@ public function testEngineSuccessMemcached() {
));

$actual = Cache::engine('memcached');
$this->assertInstanceOf('MemcachedEngine', $actual);

$this->assertTrue($actual->add('test_add_key', 'test data', 10));
$this->assertFalse($actual->add('test_add_key', 'test data', 10));
$this->assertTrue($actual->delete('test_add_key'));
Expand Down

0 comments on commit 94572ae

Please sign in to comment.