-
Notifications
You must be signed in to change notification settings - Fork 498
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
Tests configuration setup #459
Comments
Probably would be good to take this issue into account when setting up the namespaces for the tests for Requests 2.0.0. Also see #460. |
To make this change, it would be best if all test classes are named as such. Currently, the classes follow a pattern like: For PHPUnit to be able to pick up on the tests automatically, the test classes should end on Proposed naming conventions for the tests:
This is in line with PSR4 and will allow for adding a Note: for dev setups using a PHPUnit phar file, we may need to test if the above is desirable or if this will inhibit testing against multiple PHP and PHPUnit versions via the Phar too much. Action list:
|
I'm not entirely sure what issue you expect to arise here, but I've never had any problems as long as I add the Composer autoloader itself to the PHPUnit configuration's bootstrap section. |
@schlessera And that's exactly the "secret" - If the Composer autoload file is the bootstrap file (per the config or CLI args), there is no problem, however as soon as there is a custom bootstrap file which requires the Composer autoload file, you start running into signature mismatch problems if the |
PR #457 contains a commit adding a test to the config.
This is the second time I've had to create a separate PR to add tests which were not automatically being run. Also see #366.
I'd like to propose removing the separate test suite configurations in favour of a generic setup which will automatically discover any new tests added to the
tests
directory.The PHPUnit
--filter
CLI argument is powerful enough to handle selective running of the tests for most PHPUnit versions.If needs be, for older PHPUnit versions, a
@group
annotation could be added to various tests to still allow them to be run in groups alike to the original testsuites.The text was updated successfully, but these errors were encountered: