Skip to content

Commit 6b0e7bd

Browse files
committed
replace deprecated PHPUnit methods
1 parent 850ca74 commit 6b0e7bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Fixtures/V1Factory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace Art4\JsonApiClient\Tests\Fixtures;
1010

1111
use Art4\JsonApiClient\Factory as FactoryInterface;
12+
use PHPUnit\Framework\MockObject\MockBuilder;
1213
use PHPUnit\Framework\TestCase;
1314

1415
final class V1Factory implements FactoryInterface
@@ -33,11 +34,10 @@ public function __construct(TestCase $testcase)
3334
*/
3435
public function make($name, array $args = [])
3536
{
36-
return $this->testcase->getMockBuilder(AccessableElement::class)
37+
return (new MockBuilder($this->testcase, AccessableElement::class))
3738
->disableOriginalConstructor()
3839
->disableOriginalClone()
39-
->disableArgumentCloning()
40-
->disallowMockingUnknownTypes()
41-
->getMock();
40+
->getMock()
41+
;
4242
}
4343
}

0 commit comments

Comments
 (0)