Closed romanstingler closed 10 months ago
when I use something like this in my tests
/** @var CEClient $ceClient */ $ceClient = $this->mock(CEClient::class);
everything works
but if I use
/** @var CEClient $ceClient */ $ceClient = $this->mock(CEClient::class, function (MockInterface $mock) { $mock->shouldReceive('createFulfillment') ->andThrow(new Exception('Exception occurred')); });
It doesn't recognize the type correctly,
In PHPStorm it works
PS: Closed you are not using anything this is the php intellisense plugin
when I use something like this in my tests
everything works
but if I use
It doesn't recognize the type correctly,
In PHPStorm it works
PS: Closed you are not using anything this is the php intellisense plugin