Skip to content

Commit 39391e2

Browse files
authored
Update README.md
1 parent 9a7be9a commit 39391e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class MyTest extends \PHPUnit\Framework\TestCase
3434
Here is what a very common PHPUnit mock looks like:
3535

3636
```php
37-
// All these parameters to avoid calling the constructor
38-
$mock = $this->getMock('My\Class', array(), array(), '', false);
37+
$mock = $this->createMock('My\Class');
3938

4039
$mock->expect($this->any())
4140
->method('sayHello')

0 commit comments

Comments
 (0)