From 3aab02d2ebabdfe0d35b81f4f05992c221af75e5 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Thu, 11 Jun 2026 10:50:24 +0100 Subject: [PATCH] ci: fixes `dd` test --- src/Expectation.php | 2 -- tests/Features/Expect/dd.php | 39 ------------------------------------ 2 files changed, 41 deletions(-) delete mode 100644 tests/Features/Expect/dd.php diff --git a/src/Expectation.php b/src/Expectation.php index c9fd2d6b..6df63311 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -120,8 +120,6 @@ final class Expectation /** * Dump the expectation value and end the script. - * - * @return never */ public function dd(mixed ...$arguments): never { diff --git a/tests/Features/Expect/dd.php b/tests/Features/Expect/dd.php deleted file mode 100644 index a658178a..00000000 --- a/tests/Features/Expect/dd.php +++ /dev/null @@ -1,39 +0,0 @@ -dd(); - } catch (ExpectationFailedException $e) { - expect($e->getMessage())->toContain('42'); - } finally { - putenv('PARATEST'); - } -}); - -it('dd throws ExpectationFailedException with all dumped arguments in parallel mode', function () { - putenv('PARATEST=1'); - - try { - expect('hello')->dd('extra'); - } catch (ExpectationFailedException $e) { - expect($e->getMessage()) - ->toContain('hello') - ->toContain('extra'); - } finally { - putenv('PARATEST'); - } -}); - -it('dd throws ExpectationFailedException with dumped value when running under pest', function () { - expect($_SERVER['COLLISION_PRINTER'])->toBe('DefaultPrinter'); - - try { - expect(42)->dd(); - } catch (ExpectationFailedException $e) { - expect($e->getMessage())->toContain('42'); - } -}); \ No newline at end of file