Skip to content

Use PHPUnit 5.0 for PHP 7 #16041

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

Closed
wants to merge 1 commit into from
Closed

Use PHPUnit 5.0 for PHP 7 #16041

wants to merge 1 commit into from

Conversation

stof
Copy link
Member

@stof stof commented Oct 1, 2015

PHPUnit 4.8 is not fully compatible with PHP 7, and won't be fixed for full support. See sebastianbergmann/phpunit#1882

PHPUnit 4.8 is not fully compatible with PHP 7, and won't be fixed for
full support.
@stof
Copy link
Member Author

stof commented Oct 1, 2015

I opened the PR to the wrong branch. The commit was actually based on 2.3. The branch should be switched when merging.

@fabpot
Copy link
Member

fabpot commented Oct 1, 2015

Thank you @stof.

@fabpot fabpot closed this in 25855eb Oct 1, 2015
$PHPUNIT_DIR = __DIR__.'/.phpunit';

// PHPUnit 4.8 does not support PHP 7, while 5.0 requires PHP 5.6+
if (PHP_VERSION_ID >= 70000) {
$PHPUNIT_DIR = '5.0';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be $PHPUNIT_VERSION instead of $PHPUNIT_DIR ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should 😉 , @stof

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@stof stof deleted the phpunit_version branch October 1, 2015 08:40
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.

5 participants