We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 850ca74 commit 6b0e7bdCopy full SHA for 6b0e7bd
tests/Fixtures/V1Factory.php
@@ -9,6 +9,7 @@
9
namespace Art4\JsonApiClient\Tests\Fixtures;
10
11
use Art4\JsonApiClient\Factory as FactoryInterface;
12
+use PHPUnit\Framework\MockObject\MockBuilder;
13
use PHPUnit\Framework\TestCase;
14
15
final class V1Factory implements FactoryInterface
@@ -33,11 +34,10 @@ public function __construct(TestCase $testcase)
33
34
*/
35
public function make($name, array $args = [])
36
{
- return $this->testcase->getMockBuilder(AccessableElement::class)
37
+ return (new MockBuilder($this->testcase, AccessableElement::class))
38
->disableOriginalConstructor()
39
->disableOriginalClone()
- ->disableArgumentCloning()
40
- ->disallowMockingUnknownTypes()
41
- ->getMock();
+ ->getMock()
+ ;
42
}
43
0 commit comments