mirror of
https://github.com/php/pftt2.git
synced 2026-03-24 09:12:17 +01:00
--EXPECTF-- section comparison is broken #56
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cmb69 on GitHub (Oct 16, 2019).
Consider the following PHPT:
This is certainly supposed to fail (outputs
foobut expectsbar), but with current HEAD it passes for me. I did some improvements to make the internally generated regex more strict (replaced the.*at the beginning and end with^and$, respectively), but the test still passed. I've quickly rewritten the relevant parts using java.util.regex instead of our port of org.apache.regexp and then the test failed.@cmb69 commented on GitHub (Oct 22, 2019):
FTR: php-test-pack-7.3.11 has 16224 tests; 7257 use EXPECTF and 75 use EXPECTREGEX.