Skip to content

Commit 9ef302c

Browse files
Update dependency phpunit/phpunit to v11 (#12)
Update dependency phpunit/phpunit to v11 --------- Co-authored-by: text-html-renovate[bot] <182508163+text-html-renovate[bot]@users.noreply.github.com> Co-authored-by: Mathieu Rochette <[email protected]>
1 parent b265b6c commit 9ef302c

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.github/workflows/test.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,12 @@ jobs:
1717
strategy:
1818
matrix:
1919
php-versions:
20-
- '5.5'
21-
- '5.6'
22-
- '7.0'
2320
- '7.1'
2421
- '7.2'
25-
# - '8.0'
26-
# - '8.1'
27-
# - '8.2'
28-
# - '8.3'
22+
- '8.0'
23+
- '8.1'
24+
- '8.2'
25+
- '8.3'
2926

3027
steps:
3128
- uses: actions/checkout@v4

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
],
1515
"require-dev": {
16-
"phpunit/phpunit": "~4.0"
16+
"phpunit/phpunit": "^5.0|^6.0|^7.0|^8.0|^9.0|^10.5|^11.0"
1717
},
1818
"require": {
1919
"ext-pcntl": "*",

tests/RedisSimpleLockFactoryTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use TH\RedisLock\RedisSimpleLock;
45
use TH\RedisLock\RedisSimpleLockFactory;
56

6-
class RedisSimpleLockFactoryTest extends PHPUnit_Framework_TestCase
7+
class RedisSimpleLockFactoryTest extends TestCase
78
{
89
private $redisClient;
910

10-
protected function setUp()
11+
public function setUp(): void
1112
{
1213
$this->redisClient = new \Predis\Client(getenv('REDIS_URI'));
1314
$this->redisClient->flushdb();

tests/RedisSimpleLockTest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

3+
use PHPUnit\Framework\TestCase;
34
use TH\RedisLock\RedisSimpleLock;
45

5-
class RedisSimpleLockTest extends PHPUnit_Framework_TestCase
6+
class RedisSimpleLockTest extends TestCase
67
{
78
private $redisClient;
89

9-
protected function setUp()
10+
public function setUp(): void
1011
{
1112
$this->redisClient = new \Predis\Client(getenv("REDIS_URI"));
1213
$this->redisClient->flushdb();
@@ -20,7 +21,7 @@ public function testLock()
2021
$lock1->acquire();
2122

2223
// Only the second acquire is supposed to fail
23-
$this->setExpectedException("Exception");
24+
$this->expectException("Exception");
2425
$lock2->acquire();
2526
}
2627

0 commit comments

Comments
 (0)