Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli authored Jul 27, 2018
1 parent 9a7be9a commit 39391e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ class MyTest extends \PHPUnit\Framework\TestCase
Here is what a very common PHPUnit mock looks like:

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

$mock->expect($this->any())
->method('sayHello')
Expand Down

0 comments on commit 39391e2

Please sign in to comment.