You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the basic template for a test case, PHP complains that the signatures for setUp and tearDown aren't compatible.
To Reproduce
Steps to reproduce the behavior:
Install WP Mock as a dependency
Create a test case using the first basic example in the README.m
Run phpunit
The error reported starts with:
PHP Fatal error: Declaration of CentralMarket\Tests\Plugins\Membership\MembershipMockTest::tearDown() must be compatible with WP_Mock\Tools\TestCase::tearDown(): void in /Users/phats
k/src/Mindsize/cmlocal/app/public/tests/plugins/cm-membership/MembershipMockTest.php on line 5
Expected behavior
The basic test case should be runnable.
The text was updated successfully, but these errors were encountered:
phatsk
added a commit
to phatsk/wp_mock
that referenced
this issue
Feb 20, 2020
Describe the bug
When using the basic template for a test case, PHP complains that the signatures for
setUp
andtearDown
aren't compatible.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The basic test case should be runnable.
The text was updated successfully, but these errors were encountered: