File tree 4 files changed +12
-13
lines changed
4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,12 @@ jobs:
17
17
strategy :
18
18
matrix :
19
19
php-versions :
20
- - ' 5.5'
21
- - ' 5.6'
22
- - ' 7.0'
23
20
- ' 7.1'
24
21
- ' 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'
29
26
30
27
steps :
31
28
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 13
13
}
14
14
],
15
15
"require-dev" : {
16
- "phpunit/phpunit" : " ~4 .0"
16
+ "phpunit/phpunit" : " ^5.0|^6.0|^7.0|^8.0|^9.0|^10.5|^11 .0"
17
17
},
18
18
"require" : {
19
19
"ext-pcntl" : " *" ,
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use PHPUnit \Framework \TestCase ;
3
4
use TH \RedisLock \RedisSimpleLock ;
4
5
use TH \RedisLock \RedisSimpleLockFactory ;
5
6
6
- class RedisSimpleLockFactoryTest extends PHPUnit_Framework_TestCase
7
+ class RedisSimpleLockFactoryTest extends TestCase
7
8
{
8
9
private $ redisClient ;
9
10
10
- protected function setUp ()
11
+ public function setUp (): void
11
12
{
12
13
$ this ->redisClient = new \Predis \Client (getenv ('REDIS_URI ' ));
13
14
$ this ->redisClient ->flushdb ();
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use PHPUnit \Framework \TestCase ;
3
4
use TH \RedisLock \RedisSimpleLock ;
4
5
5
- class RedisSimpleLockTest extends PHPUnit_Framework_TestCase
6
+ class RedisSimpleLockTest extends TestCase
6
7
{
7
8
private $ redisClient ;
8
9
9
- protected function setUp ()
10
+ public function setUp (): void
10
11
{
11
12
$ this ->redisClient = new \Predis \Client (getenv ("REDIS_URI " ));
12
13
$ this ->redisClient ->flushdb ();
@@ -20,7 +21,7 @@ public function testLock()
20
21
$ lock1 ->acquire ();
21
22
22
23
// Only the second acquire is supposed to fail
23
- $ this ->setExpectedException ("Exception " );
24
+ $ this ->expectException ("Exception " );
24
25
$ lock2 ->acquire ();
25
26
}
26
27
You can’t perform that action at this time.
0 commit comments