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

[5.4] Use namespaced PHPUnit TestCase #17058

Merged
merged 2 commits into from
Dec 30, 2016
Merged

[5.4] Use namespaced PHPUnit TestCase #17058

merged 2 commits into from
Dec 30, 2016

Conversation

vinkla
Copy link
Contributor

@vinkla vinkla commented Dec 30, 2016

Switched to the namespaced PHPUnit\Framework\TestCase class from PHPUnit_Framework_TestCase in preparation for PHPUnit 6.0 (already available in version 5).

See this tweet by @sebastianbergmann: https://twitter.com/s_bergmann/status/814846275099181056

Coding standards fixes
@vinkla
Copy link
Contributor Author

vinkla commented Dec 30, 2016

Wonder why it fails on setup=lowest but not on the other 5.6 test runs 🤔

@GrahamCampbell
Copy link
Member

I've bumped the minimum phpunit version on your PR to 5.7.0, to get all the "forward compatibility" commits in phpunit 5.

@GrahamCampbell
Copy link
Member

Tests should pass now I think.

@GrahamCampbell
Copy link
Member

NB The problem was that, because autoloading is case sensitive, and PHPUnit 5.4.0->5.4.2 used lowercase namespace, then the uppercase version wasn't matched.

@vinkla
Copy link
Contributor Author

vinkla commented Dec 30, 2016

...and PHPUnit 5.4.0->5.4.2 used lowercase namespace...

Didn't know about that, thanks for clearing that up.

@GrahamCampbell
Copy link
Member

because autoloading is case sensitive

More specifically: autoloading is case sensitive on a case sensitive filesystem. :)

@taylorotwell taylorotwell merged commit 81a8d7d into laravel:5.4 Dec 30, 2016
@vinkla vinkla deleted the patch-1 branch December 30, 2016 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants