Lower-casing of PHPT file names can break tests #57

Closed
opened 2026-01-24 11:40:34 +01:00 by admin · 0 comments
Owner

Originally created by @cmb69 on GitHub (Oct 22, 2019).

Consider following CI.phpt:

--TEST--
Testing case-(in)sensitivity of filenames
--FILE--
<?php
echo basename(__FILE__);
?>
--EXPECT--
CI.php

This test currently fails with the following diff:

+ci.php
-CI.php

Obviously, we must not lower-case the PHP file names, to avoid breaking tests which expect the filenames (or parts of these). This has likely gone unnoticed so far due to #79, but will hit us as soon as that issue is resolved.

Originally created by @cmb69 on GitHub (Oct 22, 2019). Consider following CI.phpt: ```` --TEST-- Testing case-(in)sensitivity of filenames --FILE-- <?php echo basename(__FILE__); ?> --EXPECT-- CI.php ```` This test currently fails with the following diff: ```` +ci.php -CI.php ```` Obviously, we must not lower-case the PHP file names, to avoid breaking tests which expect the filenames (or parts of these). This has likely gone unnoticed so far due to #79, but will hit us as soon as that issue is resolved.
admin added the bug label 2026-01-24 11:40:34 +01:00
admin closed this issue 2026-01-24 11:40:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: php/pftt2#57