|
|
@@ -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);
|
|
|
|