File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function __construct(DoctrineCache $doctrineCache)
25
25
$ this ->doctrineCache = $ doctrineCache ;
26
26
27
27
if (!$ this ->doctrineCache instanceof ClearableCache) {
28
- throw Exception \CacheException::fromNonMultiOperationCache ($ this ->doctrineCache );
28
+ throw Exception \CacheException::fromNonClearableCache ($ this ->doctrineCache );
29
29
}
30
30
31
31
if (!$ this ->doctrineCache instanceof MultiOperationCache) {
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ public function testConstructorThrowsExceptionWhenNotMultiOperationCacheIsUsed()
71
71
$ doctrineCache = $ this ->createMock (NotMultiOperationCache::class);
72
72
73
73
$ this ->expectException (CacheException::class);
74
+ $ this ->expectExceptionMessage ('not support multiple operations ' );
74
75
new SimpleCacheAdapter ($ doctrineCache );
75
76
}
76
77
@@ -80,6 +81,7 @@ public function testConstructorThrowsExceptionWhenNotClearableCacheIsUsed()
80
81
$ doctrineCache = $ this ->createMock (NotClearableCache::class);
81
82
82
83
$ this ->expectException (CacheException::class);
84
+ $ this ->expectExceptionMessage ('not clearable ' );
83
85
new SimpleCacheAdapter ($ doctrineCache );
84
86
}
85
87
You can’t perform that action at this time.
0 commit comments