Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Adds PHPUnit 10 support #45416

Merged
merged 34 commits into from
Feb 3, 2023
Merged

[10.x] Adds PHPUnit 10 support #45416

merged 34 commits into from
Feb 3, 2023

Conversation

nunomaduro
Copy link
Member

@nunomaduro nunomaduro commented Dec 23, 2022

This pull request adds PHPUnit 10 support to laravel/framework - while keeping support for PHPUnit 9. Note that this pull request, should test and released once PHPUnit 10 is out. In addition:

  1. Have @taylorotwell validate the change on CacheFileStoreTest.php.
  2. Make Octane compatible with Collision v7 ([1.x] Adds support for Collision v7.x octane#643).
  3. Merge this pull request.

  1. Ask Mior to release : Support PHPUnit 10 orchestral/testbench-core#84.
  2. Update our composer.json with the latest version of Testbench.

composer.json Outdated Show resolved Hide resolved
@driesvints driesvints changed the base branch from master to 10.x January 5, 2023 13:43
@nunomaduro nunomaduro marked this pull request as ready for review February 3, 2023 16:21
@taylorotwell taylorotwell merged commit ad736a4 into 10.x Feb 3, 2023
@taylorotwell taylorotwell deleted the feat/phpunit10 branch February 3, 2023 16:32
Comment on lines 119 to 135
protected function runTest(): mixed
{
$result = null;

try {
$result = parent::runTest();
} catch (Throwable $e) {
if (! is_null(static::$latestResponse)) {
static::$latestResponse->transformNotSuccessfulException($e);
}

throw $e;
}

return $result;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For all who are looking for PHPStorm Jump to source fixes because of this update and found my comment - just upgrade your deps to PHPUnit 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants