diff --git a/composer.json b/composer.json index 5f643963..314af98e 100644 --- a/composer.json +++ b/composer.json @@ -18,19 +18,19 @@ ], "require": { "php": "^8.4", - "brianium/paratest": "^7.19.0", + "brianium/paratest": "^7.19.2", "nunomaduro/collision": "^8.9.1", "nunomaduro/termwind": "^2.4.0", "pestphp/pest-plugin": "^5.0.0", "pestphp/pest-plugin-arch": "^5.0.0", "pestphp/pest-plugin-mutate": "^5.0.0", "pestphp/pest-plugin-profanity": "^5.0.0", - "phpunit/phpunit": "^13.0.3", + "phpunit/phpunit": "^13.0.5", "symfony/process": "^8.0.5" }, "conflict": { "filp/whoops": "<2.18.3", - "phpunit/phpunit": ">13.0.3", + "phpunit/phpunit": ">13.0.5", "sebastian/exporter": "<7.0.0", "webmozart/assert": "<1.11.0" }, diff --git a/src/Pest.php b/src/Pest.php index f6b16e3c..86a68487 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '5.0.0-rc.1'; + return '5.0.0-rc.2'; } function testDirectory(string $file = ''): string diff --git a/src/Support/ExceptionTrace.php b/src/Support/ExceptionTrace.php index 9d4132e2..92047840 100644 --- a/src/Support/ExceptionTrace.php +++ b/src/Support/ExceptionTrace.php @@ -26,6 +26,7 @@ final class ExceptionTrace return $closure(); } catch (Throwable $throwable) { if (Str::startsWith($message = $throwable->getMessage(), self::UNDEFINED_METHOD)) { + // @phpstan-ignore-next-line $class = preg_match('/^Call to undefined method ([^:]+)::/', $message, $matches) === false ? null : $matches[1]; $message = str_replace(self::UNDEFINED_METHOD, 'Call to undefined method ', $message); diff --git a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap index 8716d0ec..860a046c 100644 --- a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap @@ -1,5 +1,5 @@ - Pest Testing Framework 5.0.0-rc.1. + Pest Testing Framework 5.0.0-rc.2. USAGE: pest [options] @@ -44,6 +44,7 @@ --filter [pattern] ............................... Filter which tests to run --exclude-filter [pattern] .. Exclude tests for the specified filter pattern --test-suffix [suffixes] Only search for test in files with specified suffix(es). Default: Test.php,.phpt + --test-files-file [file] Only run test files listed in file (one file by line) EXECUTION OPTIONS: --parallel ........................................... Run tests in parallel diff --git a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap index e01e3b4e..3d4b5429 100644 --- a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap @@ -1,3 +1,3 @@ - Pest Testing Framework 5.0.0-rc.1. + Pest Testing Framework 5.0.0-rc.2.