32 Commits

Author SHA1 Message Date
Jhon Farias f66a8e9e93 fix: skip the frames of Pest by its own directory, not by the name of the checkout (#1913)
`Backtrace::backtrace()` skipped a frame when its path held `pest/src`, so
a checkout of this repository in a directory with any other name, such as
`pest5`, returned `src/Support/Backtrace.php` as the file of the caller and
`tests/Unit/Support/Backtrace.php` failed. The frame check now compares
against the directory that holds this file, which is the same directory
whether Pest runs from its own checkout or from `vendor/pestphp/pest`, and
the global that marked the internal test suite has no reader left.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Punyapal Shah <53343069+MrPunyapal@users.noreply.github.com>
2026-11-01 00:10:56 +05:30
nuno maduro 42d9b777bf chore: coding style changes 2026-08-07 14:52:56 +01:00
nuno maduro 1f79660add wip 2026-08-07 01:55:34 +01:00
nuno maduro cc7acfe485 wdq 2026-08-07 01:11:53 +01:00
nuno maduro 4d3d0105b7 chore: style 2026-08-06 16:02:36 +01:00
nuno maduro d112582857 wip 2026-08-05 19:58:57 +01:00
nuno maduro 820fa08313 fix: package lock fingerprint 2026-07-18 01:10:01 +01:00
nuno maduro 87db0b4847 release: v4.6.1 2026-04-15 09:03:09 -07:00
Nuno Maduro de4409e368 fix: before all 2025-07-25 20:54:37 -06:00
Nuno Maduro 32881774d2 fix: global afterEach being called twice 2024-09-11 00:40:41 +01:00
Nuno Maduro e2d360b1b5 chore: adjusts tests 2024-09-03 14:09:03 +01:00
Nuno Maduro ee32f25485 feat: pr and issue 2024-07-04 00:53:58 +01:00
Nuno Maduro c919bb5bc4 feat: adds pest function 2024-05-14 01:58:44 +01:00
Nuno Maduro 2070538fd3 chore: fixes test suite 2024-04-28 12:02:42 +01:00
Nuno Maduro 887bed3d45 fix: adjusts backtrace for pest's internal test suite 2024-01-25 15:00:04 +00:00
Bastien Philippe 9d58e1a77e Add ability to define multiple hooks for the same directory in Pest.php 2024-01-25 14:23:41 +00:00
Nuno Maduro 9c077ed352 refacto: moves function to being used on internal test suite only 2024-01-25 14:13:18 +00:00
Fabio Ivona 5d6b717c9a fix missing datasets when defined in Pest.php file 2023-08-29 10:49:17 +02:00
Mohammad Zahed 801346b894 move tests to GlobPatternTests folder and add comments for test cases 2023-06-12 12:53:27 +03:00
Mohammad Zahed aa9fe351a6 fix tests and static type check error 2023-06-10 18:00:46 +03:00
Nuno Maduro 5723da1043 tests: updates snapshot testing 2023-03-20 16:10:53 +00:00
Nuno Maduro 17e242a5f6 tests: windows global functions 2023-03-20 16:08:14 +00:00
Nuno Maduro dfe8a3deeb revert: inline testing 2022-12-04 20:06:07 +00:00
Nuno Maduro 7ad045d6b7 feat: inline testing 2022-12-04 18:38:20 +00:00
Nuno Maduro cf47b45262 feat: basic PHPUnit 10 support 2021-10-24 01:03:18 +01:00
luke 03d34e9a10 Removes isInParallel 2021-08-13 10:14:01 +01:00
jordanbrauer 79ff332afe test: global "all" hooks must only run once (#351)
in other words, they can only run once per file
2021-07-21 20:32:39 -05:00
jordanbrauer 584a7ac8a5 test: add cases for global before/after all hooks 2021-04-07 10:52:49 -05:00
jordanbrauer 54f9397f47 style: address stan + lint issues 2021-04-06 19:32:49 -05:00
jordanbrauer 53333b56ab test: adding tests for beforeEach and afterEach + empty tests for *All 2021-04-06 19:26:42 -05:00
jordanbrauer 7eb5478c42 test: add tests for shared/global before each hooks 2021-03-28 01:54:43 -05:00
Nuno Maduro de2929077b first 2020-05-11 18:38:30 +02:00