Browse Source

resolve tests warning

Olivier Massot 3 năm trước cách đây
mục cha
commit
30db49d92d

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

@@ -65,7 +65,9 @@ class ReflectionTest extends TestCase
             ->setMethodsExcept(['dynamicInvokeServiceWithArgsAndMethod'])
             ->setMethodsExcept(['dynamicInvokeServiceWithArgsAndMethod'])
             ->getMock();
             ->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);
         $this->expectException(\LogicException::class);