Skip to content

Commit 83015fc

Browse files
authored
Merge pull request #1 from Micro-PHP/1.6.0
v1.6.0 - Set package name and description.
2 parents 74dd21c + 58db57d commit 83015fc

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "micro/plugin-cache-core",
3-
"description": "Micro Framework: Cache core component",
2+
"name": "micro/plugin-cache",
3+
"description": "Micro Framework: Plugin implements PSR6 and PSR16 cache",
44
"license": "MIT",
55
"type": "micro-plugin",
66
"authors": [

tests/Unit/Business/Adapter/Concrete/RedisFactoryTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class RedisFactoryTest extends TestCase
2727
*/
2828
public function testCreate(bool $isRedisInstalled)
2929
{
30-
if (!\extension_loaded('redis')) {
30+
$extLoaded = \extension_loaded('redis');
31+
if (!$extLoaded) {
3132
$this->expectException(CacheException::class);
3233
$this->expectExceptionMessage('Extension `redis` should be installed.');
3334
}
@@ -48,8 +49,10 @@ public function testCreate(bool $isRedisInstalled)
4849
// return $facade;
4950
// });
5051
// } else {
51-
$this->expectException(CacheException::class);
52-
$this->expectExceptionMessage('Plugin `micro/plugin-redis` should be installed.');
52+
if ($extLoaded) {
53+
$this->expectException(CacheException::class);
54+
$this->expectExceptionMessage('Plugin `micro/plugin-redis` should be installed.');
55+
}
5356
// }
5457

5558
$factory = new RedisFactory($container);

0 commit comments

Comments
 (0)