Skip to content

Commit a020ddf

Browse files
committed
Fixed tests for delete, has and fixed the cache clear proxy implementation.
1 parent 9549e12 commit a020ddf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

PrefixedSimpleCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(CacheInterface $simpleCache, $prefix)
4444
*/
4545
public function clear()
4646
{
47-
$this->cache->clear();
47+
return $this->cache->clear();
4848
}
4949

5050
/**

Tests/PrefixedSimpleCacheTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testDelete()
7171
$key = 'key';
7272
$result = true;
7373

74-
$stub = $this->getCacheStub('delete', [[$prefix.$key]], $result);
74+
$stub = $this->getCacheStub('delete', [$prefix.$key], $result);
7575
$pool = new PrefixedSimpleCache($stub, $prefix);
7676

7777
$this->assertEquals($result, $pool->delete($key));
@@ -134,7 +134,7 @@ public function testHas()
134134
$key = 'key';
135135
$result = true;
136136

137-
$stub = $this->getCacheStub('has', [[$prefix.$key]], $result);
137+
$stub = $this->getCacheStub('has', [$prefix.$key], $result);
138138
$pool = new PrefixedSimpleCache($stub, $prefix);
139139

140140
$this->assertEquals($result, $pool->has($key));

0 commit comments

Comments
 (0)