소스 검색

resolve tests warning

Olivier Massot 2 년 전
부모
커밋
30db49d92d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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);