Skip to content

Commit 12311a7

Browse files
committed
Laravel 8 support
1 parent 0ce0f95 commit 12311a7

File tree

5 files changed

+26
-33
lines changed

5 files changed

+26
-33
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: php
22

33
php:
4-
- 7.2
54
- 7.3
65
- 7.4
76

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Only the latest version will get new features. Bug fixes will be provided using
1818
| 7.2 | 5.8 | August 26th, 2019 | [Documentation](https://github.com/vyuldashev/laravel-queue-rabbitmq/blob/v7.0/README.md) |
1919
| 8.0 | 5.8 | August 26th, 2019 | [Documentation](https://github.com/vyuldashev/laravel-queue-rabbitmq/blob/v8.0/README.md) |
2020
| 9 | 6 | September 3rd, 2021 | [Documentation](https://github.com/vyuldashev/laravel-queue-rabbitmq/blob/v9.0/README.md) |
21-
| 10 | 6, 7 | September 3rd, 2021 | [Documentation](https://github.com/vyuldashev/laravel-queue-rabbitmq/blob/master/README.md) |
21+
| 10 | 6, 7 | September 3rd, 2021 | [Documentation](https://github.com/vyuldashev/laravel-queue-rabbitmq/blob/v10.0/README.md) |
22+
| 11 | 8 | March 8th, 2021 | [Documentation](https://github.com/vyuldashev/laravel-queue-rabbitmq/blob/master/README.md) |
2223

2324
## Installation
2425

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.2",
12+
"php": "^7.3",
1313
"ext-json": "*",
14-
"illuminate/queue": "^6.0|^7.0",
15-
"php-amqplib/php-amqplib": "^2.11"
14+
"illuminate/queue": "^8.0",
15+
"php-amqplib/php-amqplib": "^2.12"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^8.4",
18+
"phpunit/phpunit": "^9.3",
1919
"mockery/mockery": "^1.0",
20-
"laravel/horizon": "^3.0",
20+
"laravel/horizon": "^5.0",
2121
"friendsofphp/php-cs-fixer": "^2.16",
22-
"orchestra/testbench": "^4.3"
22+
"orchestra/testbench": "^6.0"
2323
},
2424
"autoload": {
2525
"psr-4": {
@@ -33,7 +33,7 @@
3333
},
3434
"extra": {
3535
"branch-alias": {
36-
"dev-master": "10.0-dev"
36+
"dev-master": "11.0-dev"
3737
},
3838
"laravel": {
3939
"providers": [

phpunit.xml.dist

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
beStrictAboutTestsThatDoNotTestAnything="false"
5-
bootstrap="vendor/autoload.php"
6-
colors="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnError="false"
12-
stopOnFailure="false"
13-
verbose="true"
14-
>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false"
3+
beStrictAboutTestsThatDoNotTestAnything="false" bootstrap="vendor/autoload.php" colors="true"
4+
convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true"
5+
processIsolation="false" stopOnError="false" stopOnFailure="false" verbose="true"
6+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
7+
<coverage>
8+
<include>
9+
<directory suffix=".php">src/</directory>
10+
</include>
11+
<report>
12+
<html outputDirectory="build/coverage"/>
13+
</report>
14+
</coverage>
1515
<testsuites>
1616
<testsuite name="Package Test Suite">
1717
<directory suffix=".php">./tests/</directory>
@@ -23,12 +23,5 @@
2323
<env name="PORT_SSL" value="5671"/>
2424
<env name="RABBITMQ_SSL_CAFILE" value="./tests/files/rootCA.pem"/>
2525
</php>
26-
<filter>
27-
<whitelist>
28-
<directory suffix=".php">src/</directory>
29-
</whitelist>
30-
</filter>
31-
<logging>
32-
<log type="coverage-html" target="build/coverage" />
33-
</logging>
26+
<logging/>
3427
</phpunit>

tests/Feature/TestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function tearDown(): void
3232
$this->connection()->purge();
3333
}
3434

35-
$this->assertSame(0, Queue::size());
35+
self::assertSame(0, Queue::size());
3636

3737
parent::tearDown();
3838
}
@@ -83,9 +83,9 @@ public function testPush(): void
8383
$this->assertSame(TestJob::class, $payload['displayName']);
8484
$this->assertSame('Illuminate\Queue\CallQueuedHandler@call', $payload['job']);
8585
$this->assertNull($payload['maxTries']);
86-
$this->assertNull($payload['delay']);
86+
$this->assertNull($payload['backoff']);
8787
$this->assertNull($payload['timeout']);
88-
$this->assertNull($payload['timeoutAt']);
88+
$this->assertNull($payload['retryUntil']);
8989
$this->assertSame($job->getJobId(), $payload['id']);
9090

9191
$job->delete();

0 commit comments

Comments
 (0)