Skip to content

Commit 1bdd278

Browse files
committed
docs: update README
1 parent 383f793 commit 1bdd278

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Gets PHPUnit mock object.
8181
```php
8282
$email = $this->getMockBuilder(CI_Email::class)
8383
->disableOriginalConstructor()
84-
->setMethods(['send'])
84+
->onlyMethods(['send'])
8585
->getMock();
8686
$email->method('send')
8787
->willReturn(true);
@@ -117,7 +117,7 @@ You can create mocks with consecutive calls.
117117
```php
118118
$mock = $this->getMockBuilder(CI_Email::class)
119119
->disableOriginalConstructor()
120-
->setMethods(['method'])
120+
->onlyMethods(['method'])
121121
->getMock();
122122
$mock->expects($this->any())->method('method')
123123
->will($this->onConsecutiveCalls('GET', 'POST' ,'DELETE'));

0 commit comments

Comments
 (0)