Youssef Mansour 557aca75a0 fix: accept space separated values for --min and --exactly (#1921)
`--min` and `--exactly` only accepted the `--min=50` notation. When the
space separated notation was used, the plugin kept the `--min` token but
left the `50` token behind, so `ArgvInput` received an option without a
value and threw:

    $ pest --coverage --min 50

    Symfony\Component\Console\Exception\RuntimeException
    The "--min" option requires a value.

The run aborted with an unhandled exception and a stack trace, even
though every other valued option Pest forwards to PHPUnit accepts both
notations (`pest --filter add` works). The orphaned value token was also
forwarded to PHPUnit as a positional argument.

`handleArguments()` now walks the arguments positionally instead of
filtering them, so an option that takes a value also claims the token
that follows it. Value-less options (`--coverage`, `--only-covered`) keep
their current behaviour and never consume the next token, and a bare
`--min` with no value still produces the regular "requires a value"
error rather than swallowing the option that follows it.
2026-12-03 14:00:33 +00:00
2026-10-31 14:26:34 +00:00
2026-10-31 14:26:34 +00:00
2026-11-07 03:15:59 +00:00
2026-10-07 23:02:36 +04:00
2020-08-04 12:54:49 +03:00
2026-08-24 09:31:34 +01:00
2026-11-07 03:15:59 +00:00
2026-11-26 07:49:40 +00:00
2020-05-11 18:38:30 +02:00
2026-04-10 16:50:10 +01:00
2026-07-18 01:10:01 +01:00
wip
2026-08-05 19:58:57 +01:00
2026-08-07 14:52:56 +01:00
2026-11-07 03:15:59 +00:00
2026-11-20 17:07:24 +00:00
2026-06-12 07:29:53 +01:00

PEST

GitHub Workflow Status (5.x) Total Downloads Latest Version License Why PHP in 2026 YouTube Channel Subscribers


Pest v5 Now Available: Read the announcement ».

Pest is an elegant testing framework for PHP developers and AI agents.

Sponsors

We cannot thank our sponsors enough for their incredible support in funding Pest's development. Their contributions have been instrumental in making Pest the best it can be. For those who are interested in becoming a sponsor, please visit Nuno Maduro's Sponsor page at github.com/sponsors/nunomaduro.

Pest is an open-sourced software licensed under the MIT license.

S
Description
Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
Readme 9.5 MiB
Languages
PHP 99.3%
HTML 0.6%