Skip to content

Commit

Permalink
Remove deprecated PHPUnit method
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Nov 6, 2023
1 parent 4d873ba commit 16ce9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/ApiAwareTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 16ce9b1

Please sign in to comment.