Skip to content

Commit

Permalink
Don't use die() in PHPT --SKIPIF--
Browse files Browse the repository at this point in the history
Unlocks a performance optimization in PHPUnit 11.x

see https://staabm.github.io/2024/10/19/phpunit-codesprint-munich.html
  • Loading branch information
staabm committed Oct 27, 2024
1 parent 049a9f3 commit 06fa5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/phpt/dotenv_overload.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Test Dotenv overload
--SKIPIF--
<?php require dirname(__DIR__, 6).'/vendor/autoload.php'; if (4 > (new \ReflectionMethod(\Symfony\Component\Dotenv\Dotenv::class, 'bootEnv'))->getNumberOfParameters()) die('Skip because Dotenv version is too low');
<?php require dirname(__DIR__, 6).'/vendor/autoload.php'; if (4 > (new \ReflectionMethod(\Symfony\Component\Dotenv\Dotenv::class, 'bootEnv'))->getNumberOfParameters()) echo 'Skip because Dotenv version is too low';
--INI--
display_errors=1
--FILE--
Expand Down

0 comments on commit 06fa5c8

Please sign in to comment.