Skip to content

Commit

Permalink
Add expects once
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Mar 25, 2020
1 parent a1422df commit dc61ed1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -164,6 +164,7 @@ If nothing else, one can make a common mock for it:
```php
$deferredMock = $this->createMock(\Later\Interfaces\Deferred::class);
$deferredMock
->expects($this->once())
->method('get')
->willReturn($myDependency)
;
Expand Down

0 comments on commit dc61ed1

Please sign in to comment.