Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Sep 29, 2021
1 parent 383f793 commit 1bdd278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Gets PHPUnit mock object.
```php
$email = $this->getMockBuilder(CI_Email::class)
->disableOriginalConstructor()
->setMethods(['send'])
->onlyMethods(['send'])
->getMock();
$email->method('send')
->willReturn(true);
Expand Down Expand Up @@ -117,7 +117,7 @@ You can create mocks with consecutive calls.
```php
$mock = $this->getMockBuilder(CI_Email::class)
->disableOriginalConstructor()
->setMethods(['method'])
->onlyMethods(['method'])
->getMock();
$mock->expects($this->any())->method('method')
->will($this->onConsecutiveCalls('GET', 'POST' ,'DELETE'));
Expand Down

0 comments on commit 1bdd278

Please sign in to comment.