Skip to content

Commit

Permalink
Supports Laravel 12 (#49)
Browse files Browse the repository at this point in the history
* Update composer.json

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

---------

Signed-off-by: Mior Muhammad Zaki <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
crynobone and taylorotwell authored Jan 28, 2025
1 parent 2782b6b commit f31f498
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
fail-fast: true
matrix:
php: [8.2, 8.3]
laravel: [10, 11]
laravel: [10, 11, 12]
include:
- php: 8.4
laravel: 11
- php: 8.4
laravel: 12

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

Expand Down
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
"require": {
"php": "^8.2",
"ext-mbstring": "*",
"illuminate/console": "^10.24|^11.0",
"illuminate/contracts": "^10.24|^11.0",
"illuminate/log": "^10.24|^11.0",
"illuminate/process": "^10.24|^11.0",
"illuminate/support": "^10.24|^11.0",
"illuminate/console": "^10.24|^11.0|^12.0",
"illuminate/contracts": "^10.24|^11.0|^12.0",
"illuminate/log": "^10.24|^11.0|^12.0",
"illuminate/process": "^10.24|^11.0|^12.0",
"illuminate/support": "^10.24|^11.0|^12.0",
"nunomaduro/termwind": "^1.15|^2.0",
"symfony/console": "^6.0|^7.0"
},
"require-dev": {
"laravel/framework": "^10.24|^11.0",
"laravel/framework": "^10.24|^11.0|^12.0",
"laravel/pint": "^1.13",
"orchestra/testbench-core": "^8.12|^9.0",
"pestphp/pest": "^2.20",
"pestphp/pest-plugin-type-coverage": "^2.3",
"orchestra/testbench-core": "^8.13|^9.0|^10.0",
"pestphp/pest": "^2.20|^3.0",
"pestphp/pest-plugin-type-coverage": "^2.3|^3.0",
"phpstan/phpstan": "^1.10",
"symfony/var-dumper": "^6.3|^7.0"
},
Expand Down
8 changes: 8 additions & 0 deletions tests/Unit/CliPrinterTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

beforeEach(function () {
$_ENV['PAIL_TESTS'] = true;
});

afterEach(function () {
unset($_ENV['PAIL_TESTS']);
});

test('output', function () {
$output = output([
'message' => 'Hello World',
Expand Down
8 changes: 8 additions & 0 deletions tests/Unit/Origins/ConsoleTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

beforeEach(function () {
$_ENV['PAIL_TESTS'] = true;
});

afterEach(function () {
unset($_ENV['PAIL_TESTS']);
});

test('non verbose', function () {
$output = output([
'message' => 'my exception message',
Expand Down
8 changes: 8 additions & 0 deletions tests/Unit/Origins/HttpTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

beforeEach(function () {
$_ENV['PAIL_TESTS'] = true;
});

afterEach(function () {
unset($_ENV['PAIL_TESTS']);
});

test('non verbose', function () {
$output = output([
'message' => 'my exception message',
Expand Down
8 changes: 8 additions & 0 deletions tests/Unit/Origins/QueueTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

beforeEach(function () {
$_ENV['PAIL_TESTS'] = true;
});

afterEach(function () {
unset($_ENV['PAIL_TESTS']);
});

test('non verbose', function () {
$output = output([
'message' => 'my exception message',
Expand Down

0 comments on commit f31f498

Please sign in to comment.