-
Notifications
You must be signed in to change notification settings - Fork 7.9k
phpt files with more than one line in title #17761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @MasterZydra. We should fix the spec, rather than the implementation. |
Hi @iluuu1994, |
Yes, or submit a PR for this file: https://github.com/php/web-qa/blob/master/phpt_details.php. Note that there's also a PR to move this document to the main repo (this one): GH-15939. I'm not sure if @cmb69 still wants to proceed, but if he does, we should adopt the change there too. |
Please fix these overlong titles. That just doesn't make sense as implemented in run-tests.php at least, where the title is printed when running the test:
Note that there is even the hard coded line break. More descriptive information can be put in the
"want" vs. "have time/priority" |
I don't mind also adjusting the tests, but breaking tests (remember that the same script is used for extensions) seems a bit harsh. |
Well, I would fix the tests (no changes to run-tests.php), and leave the spec as is. This doesn't break anything. |
I reckon OP opened this issue because they're attempting to make their own implementation comply to the spec. So, adjusting the test alone might not answer their question about how it should behave. |
I suggest to apply Postel's law: "be conservative in what you do, be liberal in what you accept from others" I.e. a runner should (ideally) deal with multiline titles, but the spec should still be strict. |
I'm fine with that solution. @cmb69 Should I create a PR to fix the tests title? |
That would be nice! |
Thanks you two for the quick solution. |
Description
I implemented my own runner for the phpt files and noticed the following:
In the spec for the file format it says: (https://qa.php.net/phpt_details.php#test_section)
"Title of test as a single line short description."
But the following test have more than one line:
What is the best solution for this? Change the spec for phpt or fix the tests?
PHP Version
latest
Operating System
No response
The text was updated successfully, but these errors were encountered: