mirror of
https://github.com/pestphp/pest.git
synced 2026-12-03 22:45:06 +01:00
38c79452c1b28d317fe0447c906aab106972f63c
* fix(tia): link files a test reads as text, not only files it executes * fix(tia): report dangling symlinks as links while reads are captured `is_link()` stats with STREAM_URL_STAT_LINK | STREAM_URL_STAT_QUIET. The `file_exists()` precheck in `ReadCapture::url_stat()` follows the link, so a dangling symlink returned false before reaching `lstat()`, and `is_link()` reported false while a test recorded. Handle STREAM_URL_STAT_LINK first and always answer it through `lstat()`. A quiet stat of a path that is neither a link nor a file still returns false without a warning. The regression test covers a link to an existing file and a dangling link. * test(tia): skip the read-capture feature tests without a coverage driver The fixture runs record a graph from coverage, so with CI's `coverage: none` all five cases failed. Skip them when `Coverage::isAvailable()` is false, as CoveragePiggyback does. * chore: style * Refresh read capture test snapshots --------- Co-authored-by: Punyapal Shah <53343069+MrPunyapal@users.noreply.github.com> Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
Pest v5 Now Available: Read the announcement ».
Pest is an elegant testing framework for PHP developers and AI agents.
- Explore our docs at pestphp.com »
- Follow the creator Nuno Maduro:
- YouTube: youtube.com/@nunomaduro — Videos every week
- Twitch: twitch.tv/nunomaduro — Live coding on Mondays, Wednesdays, and Fridays at 9PM UTC
- Twitter / X: x.com/enunomaduro
- LinkedIn: linkedin.com/in/nunomaduro
- Instagram: instagram.com/enunomaduro
- Tiktok: tiktok.com/@enunomaduro
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.
- PhpStorm
- CodeRabbit
- SerpApi
- Bento
- CMS Max
- Redberry
- Typesense
- Pixel
- NativePHP
- TestMu AI
- Zapiet
- LoadForge
- Route4Me
- Nerdify
Pest is an open-sourced software licensed under the MIT license.
Languages
PHP
99.3%
HTML
0.6%
