mirror of
https://github.com/pestphp/pest.git
synced 2026-12-04 15:05:09 +01:00
38c79452c1
* 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>