From 049da041b244776765ffea5ae9f3e13bd96ec4c9 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 1 Aug 2023 14:43:50 +0100 Subject: [PATCH] release: v2.11.0 --- bin/worker.php | 1 + src/Pest.php | 2 +- .../Help/visual_snapshot_of_help_command_output.snap | 2 +- .../visual_snapshot_of_help_command_output.snap | 2 +- tests/.snapshots/success.txt | 10 +++++++++- tests/Visual/Parallel.php | 2 +- 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/bin/worker.php b/bin/worker.php index 6b2660d4..4c2f7be2 100644 --- a/bin/worker.php +++ b/bin/worker.php @@ -46,6 +46,7 @@ $bootPest = (static function (): void { ]; foreach ($composerAutoloadFiles as $file) { + if (file_exists($file)) { require_once $file; define('PHPUNIT_COMPOSER_INSTALL', $file); diff --git a/src/Pest.php b/src/Pest.php index 322884d6..37dc243d 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '2.10.1'; + return '2.11.0'; } function testDirectory(string $file = ''): string 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 b7c36edd..c630e2d5 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 2.10.1. + Pest Testing Framework 2.11.0. USAGE: pest [options] 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 0d599238..30e2d8c5 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 2.10.1. + Pest Testing Framework 2.11.0. diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 9eeb752b..f9d7233c 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -411,6 +411,14 @@ ✓ failures with custom message ✓ not failures + PASS Tests\Features\Expect\toBeInvokable + ✓ class is invokable + ✓ opposite class is invokable + ✓ class is invokable via a parent class + ✓ class is invokable via a trait + ✓ failure when the class is not invokable + ✓ class is not invokable + PASS Tests\Features\Expect\toBeIterable ✓ pass ✓ failures @@ -1186,4 +1194,4 @@ WARN Tests\Visual\Version - visual snapshot of help command output - Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 19 skipped, 838 passed (1939 assertions) \ No newline at end of file + Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 19 skipped, 844 passed (1947 assertions) \ No newline at end of file diff --git a/tests/Visual/Parallel.php b/tests/Visual/Parallel.php index 89c3a9a1..406c0f5b 100644 --- a/tests/Visual/Parallel.php +++ b/tests/Visual/Parallel.php @@ -16,7 +16,7 @@ $run = function () { test('parallel', function () use ($run) { expect($run('--exclude-group=integration')) - ->toContain('Tests: 1 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 15 skipped, 827 passed (1924 assertions)') + ->toContain('Tests: 1 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 15 skipped, 833 passed (1932 assertions)') ->toContain('Parallel: 3 processes'); })->skipOnWindows();