diff --git a/Tests/ApiAwareTraitTest.php b/Tests/ApiAwareTraitTest.php index 7e6df2b..4051f20 100644 --- a/Tests/ApiAwareTraitTest.php +++ b/Tests/ApiAwareTraitTest.php @@ -31,7 +31,7 @@ public function testThrowIfSetApiButApiClassIsNotValidClass() public function testThrowUnsupportedApi() { $object = new ApiAwareClass; - $object->setApiClass($this->getMockClass(\stdClass::class)); + $object->setApiClass($this->createMock(\stdClass::class)); $this->expectException(UnsupportedApiException::class); $this->expectExceptionMessage('It must be an instance of Mock_stdClass');