Conor Murphy ac8feafdcc fix: guard Tia argv scanning against non-string args (#1736)
The Tia plugin scans the raw argv with str_starts_with() in
argumentPresent() and hasExplicitPathArgument(). In the parallel worker
path (bin/worker.php) the unserialized argv can contain an integer
--random-order-seed value as a separate element, which made
str_starts_with() throw:

    TypeError: str_starts_with(): Argument #1 ($haystack) must be of
    type string, int given

This is the same class of bug as #1206, which was only fixed in
HandleArguments; it resurfaced in the newer Tia plugin. Cast each argv
element to string before scanning, mirroring the #1206 fix.

Adds a regression test, and updates the parallel count assertion and the
success snapshot to account for it.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 20:03:06 +01:00
2026-06-12 06:51:58 +01:00
wip
2026-05-02 19:30:14 +01:00
2024-01-25 18:06:35 +01:00
wip
2026-05-01 20:28:39 +01:00
2020-08-04 12:54:49 +03:00
2024-12-01 20:41:34 +00:00
2026-06-11 10:08:36 +01:00
2020-05-11 18:38:30 +02:00
2026-04-10 16:50:10 +01:00
2026-04-10 16:50:10 +01:00
2026-06-12 06:32:20 +01:00
2025-12-30 14:48:33 -05:00
2025-08-20 15:30:59 +01:00

PEST

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


Pest v4 Now Available: Read the announcement ».

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.

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.

Platinum Sponsors

Gold Sponsors

Premium Sponsors

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 11 MiB
Languages
PHP 98.8%
JavaScript 0.6%
HTML 0.5%