diff --git a/.travis.yml b/.travis.yml index 674311c..dcf09aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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 diff --git a/classes/MockObjectProxy.php b/classes/MockObjectProxy.php index 7fd9ccc..21550de 100644 --- a/classes/MockObjectProxy.php +++ b/classes/MockObjectProxy.php @@ -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) diff --git a/tests/MockObjectProxyTest.php b/tests/MockObjectProxyTest.php index 950005b..5587d0f 100644 --- a/tests/MockObjectProxyTest.php +++ b/tests/MockObjectProxyTest.php @@ -96,7 +96,7 @@ public function provideTestProxiedMethods() return [ ["__phpunit_getInvocationMocker"], ["__phpunit_setOriginalObject", ["bar"]], - ["__phpunit_verify"], + ["__phpunit_verify", [true]], ]; } }