Commit Graph

151 Commits

Author SHA1 Message Date
nuno maduro 9e79e491e2 Merge branch '4.x' into 5.x 2026-07-17 16:38:01 +01:00
nuno maduro ff4aba2ffa chore: updates snapshots 2026-07-17 14:32:33 +01:00
nuno maduro b52bbb4cca chore: snapshots 2026-07-14 15:11:20 +01:00
nuno maduro 52819501eb chore: fixes tia when not running on root 2026-07-14 14:34:00 +01:00
nuno maduro 145e20db75 chore: merges 4.x 2026-06-25 20:20:20 +01:00
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
nuno maduro b2998bc69e chore: updates snapshots 2026-06-12 20:30:16 +01:00
nuno maduro 0d7814ca16 chore: update snapshots 2026-06-12 18:02:06 +01:00
flap152 8467c64c22 fix: popArgument drops duplicate arguments breaking --parallel --exclude-gropup= (#1674)
* fix: popArgument drops duplicate arguments breaking --parallel multi-exclude-group

Fixes #1437

* fix: ensure popArgument handles duplicate arguments

* fix: update expected test results and snapshots after rebase

---------

Signed-off-by: nuno maduro <enunomaduro@gmail.com>
Co-authored-by: nuno maduro <enunomaduro@gmail.com>
2026-06-12 17:58:37 +01:00
nuno maduro 15e9b6a507 chore: snapshots 2026-06-12 07:22:13 +01:00
nuno maduro da726beffc chore: merges 4.x 2026-06-01 06:28:44 +01:00
nuno maduro bd22f478b8 chore: fixes issues with contracts and symfony 8.1 2026-06-01 06:24:42 +01:00
nuno maduro f859bb179d Merge branch '4.x' into 5.x 2026-05-04 07:38:40 -03:00
nuno maduro a3796daa42 wip 2026-05-03 13:24:10 +01:00
nuno maduro 6053e15d00 Merge branch '4.x' into 5.x 2026-04-17 06:07:14 -07:00
nuno maduro 87db0b4847 release: v4.6.1 2026-04-15 09:03:09 -07:00
nuno maduro 2d649d765f chore: adjusts tests 2026-04-11 01:54:13 +01:00
nuno maduro f528bd8427 feat: adds flaky 2026-04-10 19:52:31 +01:00
nuno maduro 729f18a152 fix: stacktrace with nested with calls 2026-04-10 17:25:05 +01:00
nuno maduro e766825f5b chore: fixes test:unit 2026-04-10 12:15:00 +01:00
Aleksandr Štšepelin f7175ecfd7 Fix parallel dataset reporting and nested fixtures 2026-03-25 23:59:29 +02:00
Aleksandr Štšepelin 07737bc0b2 Fix parallel file selection and empty-suite reporting 2026-03-25 23:59:28 +02:00
Nuno Maduro bc57a84e77 release: 4.3.1 2026-01-04 11:29:59 -05:00
Nuno Maduro 6a96aed654 feat: adds phpunit@12.5 support 2025-12-15 11:48:43 +00:00
Nuno Maduro 711a60c2db release: beta 1 2025-08-05 17:44:12 +01:00
Nuno Maduro 4c88590b89 feat: not.toHaveSuspiciousCharacters 2025-07-26 07:47:00 -06:00
Nuno Maduro d187566e63 chore: updates snapshots 2025-07-25 21:29:26 -06:00
jshayes 50ff347b59 Pass description into describe call 2025-01-20 17:40:18 -05:00
Nuno Maduro 709ecb1ba2 chore: adjusts tests 2025-01-19 17:35:09 +00:00
Nuno Maduro 6afb36519d release: 3.7.2 2025-01-19 17:16:25 +00:00
Nuno Maduro 5d32dd0641 feat: option to coverage 2024-12-01 22:45:31 +00:00
jshayes 6968094e2b Add tests 2024-10-13 10:39:17 -04:00
jshayes cd2eb3504b Add helper to get last element of array 2024-10-13 09:47:54 -04:00
jshayes 7c639cdbbd Add more tests 2024-10-13 00:41:04 -04:00
jshayes a6cd83665c Execute all parent beforeEach and afterEach functions for each test 2024-10-11 23:51:18 -04:00
jshayes 0c57142c03 Fix an issue where a describe block will prevent a beforeEach call from executing 2024-10-11 21:24:08 -04:00
Nuno Maduro 1e0bb88b73 release: v3.2.5 2024-10-01 11:55:18 +01:00
Nuno Maduro a55da85dd2 release: v3.2.0 2024-09-23 13:14:03 +01:00
Nuno Maduro 32881774d2 fix: global afterEach being called twice 2024-09-11 00:40:41 +01:00
Nuno Maduro 09edaa9c2d chore: updates snapshots 2024-09-09 10:49:48 +01:00
Nuno Maduro 6afd2ec9df release: v3.0.0 2024-09-09 01:16:11 +01:00
Nuno Maduro ae288d1123 fix tests 2024-09-05 18:17:30 +01:00
Nuno Maduro 2d80ff19ec feat(mutate): only 2024-09-05 02:49:52 +01:00
Nuno Maduro dd20323ca7 feat: custom presets 2024-09-04 20:53:33 +01:00
Nuno Maduro e2d360b1b5 chore: adjusts tests 2024-09-03 14:09:03 +01:00
Nuno Maduro dde943b993 refacto: toHaveMethod and toHaveMethods 2024-09-02 19:38:38 +01:00
Nuno Maduro 5ae5ac9a54 fix: removes both toHaveMethod and toHaveMethods 2024-08-28 16:30:29 -05:00
Nuno Maduro ecdbe7a472 release: 3.0.0-rc.1 2024-08-22 21:36:19 +01:00
Nuno Maduro 2c6c3119d2 Merge branch '2.x' into 3.x 2024-08-22 21:21:52 +01:00
Nuno Maduro 9ceb0834ae chore: updates snapshots 2024-08-22 21:07:39 +01:00