Skip to content

Commit cc84cff

Browse files
committed
Updates phpunit to v8
1 parent d0aa283 commit cc84cff

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33

44
/examples/.env
55
composer.lock
6-
phpunit.xml
6+
phpunit.xml
7+
.phpunit.result.cache

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"predis/predis": "Allow Redis Queue"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^6.5",
30+
"phpunit/phpunit": "^8",
3131
"cache/cache": "~1.0",
3232
"monolog/monolog": "^1.23",
3333
"symfony/console": "~3.2",

tests/Unit/Queue/MysqlQueueTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MysqlQueueTest extends TestCase
1919
*/
2020
protected $mockPdoStatement;
2121

22-
protected function setUp()
22+
protected function setUp(): void
2323
{
2424
parent::setUp();
2525

tests/Unit/Queue/RabbitmqQueueTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RabbitmqQueueTest extends TestCase
2222
*/
2323
protected $mockChannel;
2424

25-
protected function setUp()
25+
protected function setUp(): void
2626
{
2727
parent::setUp();
2828

tests/Unit/Queue/RedisQueueTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class RedisQueueTest extends TestCase
1515
*/
1616
protected $mockClient;
1717

18-
protected function setUp()
18+
protected function setUp(): void
1919
{
2020
parent::setUp();
2121

@@ -54,7 +54,7 @@ public function testAddWithDelay()
5454
$this->mockClient
5555
->expects($this->at(0))
5656
->method('__call')
57-
->with('zadd', [$task->queue() . '-delayed', time() + $task->delay(), $task->serialize()])
57+
->with('zadd', [$task->queue() . '-delayed', [time() + $task->delay(), $task->serialize()]])
5858
->willReturn(1);
5959

6060

tests/Unit/TaskTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testSerialize()
7575
$task = new TestTask();
7676
$serialized = $task->serialize();
7777

78-
$this->assertInternalType('string', $serialized);
78+
$this->assertIsString($serialized);
7979
$this->assertJson($serialized);
8080
}
8181
}

tests/Unit/WorkerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class WorkerTest extends TestCase
2121
*/
2222
protected $mockLogger;
2323

24-
protected function setUp()
24+
protected function setUp(): void
2525
{
2626
parent::setUp();
2727

0 commit comments

Comments
 (0)