Skip to content

Commit

Permalink
Merge pull request #25 from squigg/9.x
Browse files Browse the repository at this point in the history
Support Laravel 9.x
  • Loading branch information
squigg authored Mar 14, 2022
2 parents a2559b6 + f1300cd commit b213c57
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 50 deletions.
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ PHP Laravel Queue Driver package to support Microsoft Azure Storage Queues
- PHP 7.1+ for Laravel 5.6+
- PHP 7.2+ for Laravel 6+
- PHP 7.3+ for Laravel 8+
- PHP 8.0+ for Laravel 9+
- Microsoft Azure Storage Account and Storage Account Key
- Queue container created through Azure Portal or via
[Azure CLI](https://docs.microsoft.com/en-us/cli/azure/storage/queue?view=azure-cli-latest#az-storage-queue-create)
Expand All @@ -28,6 +29,9 @@ You can find this library on [Packagist](https://packagist.org/packages/squigg/a

Require this package in your `composer.json`. The version numbers will follow Laravel.

#### Laravel 9.x
"squigg/azure-queue-laravel": "^9.0"
composer require squigg/azure-queue-laravel:^9.0
#### Laravel 8.x
"squigg/azure-queue-laravel": "^8.0"
composer require squigg/azure-queue-laravel:^8.0
Expand Down Expand Up @@ -123,6 +127,8 @@ Remember to update the default queue by setting the `QUEUE_DRIVER` value in your

## Changelog

2022-03-17 - V9.0 - Support for Laravel 9.x

2021-10-16 - V8.1 - Support for PHP 8

2020-09-19 - V8.0 - Support for Laravel 8.x (composer dependency and test refactoring only)
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
],
"require": {
"php": "^7.3|^8.0",
"illuminate/queue": "^8.0",
"illuminate/queue": "^9.0",
"microsoft/azure-storage-queue": "~1.3.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0|^9.0",
"orchestra/testbench": "^6.0",
"orchestra/testbench": "^7.0",
"mockery/mockery": "~1.0",
"php-coveralls/php-coveralls": "~2.0",
"ext-json": "*"
Expand Down
49 changes: 17 additions & 32 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
bootstrap="phpunit.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
>
<logging>
<log type="coverage-clover" target="clover.xml" />
</logging>

<!-- List of files with tests inside -->
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">tests</directory>
</testsuite>
</testsuites>

<!-- List of source files for code coverage checker -->
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>
</whitelist>
</filter>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" beStrictAboutOutputDuringTests="true" beStrictAboutTestsThatDoNotTestAnything="true" bootstrap="phpunit.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
<logging/>
<!-- List of files with tests inside -->
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">tests</directory>
</testsuite>
</testsuites>
<!-- List of source files for code coverage checker -->
</phpunit>
2 changes: 1 addition & 1 deletion src/AzureQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function pushRaw($payload, $queue = null, array $options = [])
}

/**
* Push a new job onto the queue after a delay.
* Push a new job onto the queue after (n) seconds.
*
* @param \DateTime|int $delay
* @param string $job
Expand Down

0 comments on commit b213c57

Please sign in to comment.