Skip to content
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: only use our own autoloader when testing via a PHAR #508

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 14, 2021

By moving the registering of our own autoloader into the condition for when the tests are run via the PHAR, we create a "clean" test setup when the autoloading via the Requests native autoloader can be tested by running the tests with the PHPUnit PHAR, while the autoloading via Composer can be tested by running the tests via a Composer installed version of PHPUnit.

By moving the registering of our own autoloader into the condition for when the tests are run via the PHAR, we create a "clean" test setup when the autoloading via the Requests native autoloader can be tested by running the tests with the PHPUnit PHAR, while the autoloading via Composer can be tested by running the tests via a Composer installed version of PHPUnit.
@jrfnl jrfnl added this to the 2.0.0 milestone Aug 14, 2021
@jrfnl jrfnl requested a review from schlessera August 14, 2021 00:01
@schlessera schlessera merged commit e5ddc01 into develop Aug 20, 2021
@schlessera schlessera deleted the feature/tests-tweak-autoloading-for-test-setup branch August 20, 2021 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants