diff --git a/tests/phpunit/tests/pomo/pluralForms.php b/tests/phpunit/tests/pomo/pluralForms.php index 0329374e94df8..8813336e37069 100644 --- a/tests/phpunit/tests/pomo/pluralForms.php +++ b/tests/phpunit/tests/pomo/pluralForms.php @@ -233,7 +233,7 @@ public function test_cache() { $mock->expects( $this->once() ) ->method( 'execute' ) ->with( $this->identicalTo( 2 ) ) - ->will( $this->returnValue( 1 ) ); + ->willReturn( 1 ); $first = $mock->get( 2 ); $second = $mock->get( 2 ); diff --git a/tests/phpunit/tests/rest-api/rest-server.php b/tests/phpunit/tests/rest-api/rest-server.php index b8e8cc6f5adcb..dce5a045f73db 100644 --- a/tests/phpunit/tests/rest-api/rest-server.php +++ b/tests/phpunit/tests/rest-api/rest-server.php @@ -652,7 +652,7 @@ public function test_json_error_with_status() { $stub->expects( $this->once() ) ->method( 'set_status' ) - ->with( $this->equalTo( 400 ) ); + ->with( 400 ); $data = array( 'code' => 'wp-api-test-error',