-
Notifications
You must be signed in to change notification settings - Fork 71
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
Not compatible with PHPUnit 7.0.0 #117
Comments
I just came here to open the same issue. +1. |
same here |
I have the same problem with PHPUnit_Extensions_Selenium2TestCase Fatal error: Declaration of PHPUnit_Extensions_Selenium2TestCase::run(?PHPUnit\Framework\TestResult $result = NULL) must be compatible with PHPUnit\Framework\Test::run(?PHPUnit\Framework\TestResult $result = NULL): PHPUnit\Framework\TestResult in /Applications/XAMPP/xamppfiles/htdocs/Project_PRAEPOM/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php |
I believe i hit the same issue with
|
Yep, I am also experiencing this from the clean install |
In PHPUnit 7.0.0, the phpunit framework has added return types to all the methods in the
\PHPUnit\Framework\TestCase
class.The
WP_Mock\Tools\TestCase
class extends\PHPUnit\Framework\TestCase
and therefore these methods also should explicitly add the return types. If not PHP is throwing fatal errors.Some sample errors that are thrown are
etc.
The text was updated successfully, but these errors were encountered: