Skip to content

Commit 22405cb

Browse files
committed
added ci for php 8.1
1 parent a884f59 commit 22405cb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- 6379:6379
2020
strategy:
2121
matrix:
22-
version: ['7.3', '8.0']
22+
version: ['7.3', '8.0', '8.1']
2323
steps:
2424
- name: Checkout code
2525
uses: actions/checkout@v2

tests/Suite/Sdk/SdkClientTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,13 @@ public function testInvalidCacheAdapter()
475475
public function testCacheExceptionReturnsControl()
476476
{
477477
Di::set(Di::KEY_FACTORY_TRACKER, false);
478-
$log = new Logger('SplitIO');
479-
$log->pushHandler(new ErrorLogHandler(ErrorLogHandler::OPERATING_SYSTEM, Logger::INFO));
478+
479+
$log = $this
480+
->getMockBuilder('Psr\Log\LoggerInterface')
481+
->disableOriginalConstructor()
482+
->setMethods(array('warning', 'debug', 'error', 'info', 'critical', 'emergency',
483+
'alert', 'notice', 'write', 'log'))
484+
->getMock();
480485

481486
$parameters = array('scheme' => 'redis', 'host' => REDIS_HOST, 'port' => REDIS_PORT, 'timeout' => 881);
482487
$options = array();

0 commit comments

Comments
 (0)