File tree Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" : " *" ,
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use TH \RedisLock \RedisSimpleLock ;
45use 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 ();
Original file line number Diff line number Diff line change 11<?php
22
3+ use PHPUnit \Framework \TestCase ;
34use 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
You can’t perform that action at this time.
0 commit comments