Browse Source

resolve tests warning

Olivier Massot 2 years ago
parent
commit
30db49d92d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/Service/Utils/ReflectionTest.php

+ 3 - 1
tests/Service/Utils/ReflectionTest.php

@@ -65,7 +65,9 @@ class ReflectionTest extends TestCase
             ->setMethodsExcept(['dynamicInvokeServiceWithArgsAndMethod'])
             ->getMock();
 
-        $this->container->method('get')->with('subject')->willReturn(ReflectionTestSubject::class);
+        $subject = $this->getMockBuilder(ReflectionTestSubject::class)->disableOriginalConstructor()->getMock();
+
+        $this->container->method('get')->with('subject')->willReturn($subject);
 
         $this->expectException(\LogicException::class);