Skip to content

Commit

Permalink
Merge pull request #30 from chrisminett/phpunit-7.4-verify
Browse files Browse the repository at this point in the history
Update __phpunit_verify() method signature for PHPUnit 7.4

Closes #30
Fixes #29
  • Loading branch information
michalbundyra committed Oct 7, 2018
2 parents 92d32f4 + e98c3f5 commit 57b92e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
- PHPUNIT_VERSION=~7.1.0
- PHPUNIT_VERSION=~7.2.0
- PHPUNIT_VERSION=~7.3.0
- PHPUNIT_VERSION=~7.4.0

php:
- 7.2
Expand All @@ -30,6 +31,8 @@ matrix:
exclude:
- php: 7
env: PHPUNIT_VERSION=dev-master
- php: 7
env: PHPUNIT_VERSION=~7.4.0
- php: 7
env: PHPUNIT_VERSION=~7.3.0
- php: 7
Expand Down
4 changes: 2 additions & 2 deletions classes/MockObjectProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public function __phpunit_setOriginalObject($originalObject)
* @SuppressWarnings(PHPMD)
*/
// @codingStandardsIgnoreStart
public function __phpunit_verify()
public function __phpunit_verify(bool $unsetInvocationMocker = true)
{
// @codingStandardsIgnoreEnd
return $this->mockObject->__phpunit_verify();
return $this->mockObject->__phpunit_verify($unsetInvocationMocker);
}

public function expects(Invocation $matcher)
Expand Down
2 changes: 1 addition & 1 deletion tests/MockObjectProxyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function provideTestProxiedMethods()
return [
["__phpunit_getInvocationMocker"],
["__phpunit_setOriginalObject", ["bar"]],
["__phpunit_verify"],
["__phpunit_verify", [true]],
];
}
}

0 comments on commit 57b92e6

Please sign in to comment.