-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
Some expectation methods
$mock = Mockery::mock(Something::class);
$mock
->shouldReceive('foo')
->andReturn(null)
->shouldReceive('bar');
Currently, the second shouldReceive
call will trigger this error: Call to an undefined method Mockery\Expectation::shouldReceive().
Partial mocks
$mock = Mockery::mock('Foo\Bar[method1,method2]');
Currently, $mock is assumed to be of type Foo\Bar[method1,method2]
Methods returning Mock
$mock = Mockery::mock(Bar::class)->shouldDeferMissing();
Currently, methods returning Mockery\Mock will just return that, instead of an intersection type.
driade and jaydiablo
Metadata
Metadata
Assignees
Labels
No labels