Skip to content

Commit

Permalink
Merge branch '8.x' into 9.x
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Jan 10, 2024
2 parents 62400af + beb3af0 commit 63302a4
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/strict-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- 8.3
phpunit:
- "~10.5.0"
- "10.5.4"
- "~11.0.0"
dependencies:
- "highest"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- 8.3
phpunit:
- "~10.5.0"
- "10.5.4"
- "~11.0.0"
dependencies:
- "highest"
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG-7.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`.

## 7.39.1

Released: 2024-01-10

### Changes

* Run `route:cache` using `Orchestra\Testbench\remote` function.
* Add `Orchestra\Testbench\Concerns\InteractsWithTestCase` to `setUpTheTestEnvironmentTraitToBeIgnored` method.

## 7.39.0

Released: 2023-12-28
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG-8.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`.

## 8.20.0

Released: 2024-01-10

### Added

* Flush error and exception handlers between tests using `Orchestra\Testbench\Bootstrap\HandleExceptions::forgetApp()` for PHPUnit 10.

### Changes

* Run `route:cache` using `Orchestra\Testbench\remote` function.
* Add following traits to `setUpTheTestEnvironmentTraitToBeIgnored` method:
- `Orchestra\Testbench\Concerns\InteractsWithPest`
- `Orchestra\Testbench\Concerns\InteractsWithTestCase`

## 8.19.0

Released: 2023-12-28
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"brianium/paratest": "<7.3.0 || >=8.0.0",
"laravel/framework": "<11.0.0 || >=12.0.0",
"nunomaduro/collision": "<8.0.0 || >=9.0.0",
"phpunit/phpunit": "<10.5.0 || 10.5.4 || >=11.1.0"
"phpunit/phpunit": "<10.5.0 || >=11.1.0"
},
"suggest": {
"ext-pcntl": "Required to use all features of the console signal trapping.",
Expand Down
10 changes: 10 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ parameters:
count: 1
path: src/Bootstrap/HandleExceptions.php

-
message: "#^Parameter \\#1 \\$callback of function set_error_handler expects \\(callable\\(int, string, string, int\\)\\: bool\\)\\|null, Closure\\(\\)\\: null given\\.$#"
count: 1
path: src/Bootstrap/HandleExceptions.php

-
message: "#^Static property Illuminate\\\\Foundation\\\\Bootstrap\\\\HandleExceptions\\:\\:\\$app \\(Illuminate\\\\Contracts\\\\Foundation\\\\Application\\) does not accept null\\.$#"
count: 1
path: src/Bootstrap/HandleExceptions.php

-
message: "#^Call to an undefined method Illuminate\\\\Contracts\\\\Foundation\\\\Application\\:\\:environmentFile\\(\\)\\.$#"
count: 1
Expand Down
2 changes: 2 additions & 0 deletions src/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Illuminate\Foundation\Bootstrap\HandleExceptions as LaravelHandleExceptions;
use Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables;
use Illuminate\Foundation\Configuration\ApplicationBuilder;
use Illuminate\Foundation\Console\AboutCommand;
use Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull;
use Illuminate\Foundation\Http\Middleware\TrimStrings;
use Illuminate\Queue\Queue;
Expand Down Expand Up @@ -184,6 +185,7 @@ public static function flushState(): void

Queue::createPayloadUsing(null);
Sleep::fake(false);
AboutCommand::flushState();
TrimStrings::flushState();
}

Expand Down

0 comments on commit 63302a4

Please sign in to comment.