-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Writing PHPT tests #302
Comments
I never really thought of the PHPT support in PHPUnit's test runner as a "public" feature, and more of an "internal" feature that is used to implement end-to-end tests for PHPUnit's test runner. That is/was probably wrong. |
It's definitely a barely known feature, but it is something I have been playing with for a couple of projects now and I'd find it helpful to be able to point project contributors somewhere (quite apart from having the chance to learn more about what I can do with the format myself). |
Do I understand this correctly that you volunteer to write this documentation? :) |
Not necessarily, but willing to give it a try when I have some time (next year or something... way too busy still for now) |
Okay, no worries. |
While most people will primarily write unit tests, at times, it will be useful to write
phpt
style tests.Typical use cases include, but are not limited to:
There is (project specific) information available about the
phpt
format in the PHP project itself, but that information is not one-on-one applicable forphpt
for PHPUnit.I believe it would be beneficial to add a section to the PHPUnit documentation about writing
phpt
tests, which at the very least documents the available sections.The text was updated successfully, but these errors were encountered: