Skip to content

Commit

Permalink
Merge pull request #1061 from davedevelopment/add-phpunit-integration…
Browse files Browse the repository at this point in the history
…-to-readme

Adds note about PHPUnit integration
  • Loading branch information
davedevelopment committed May 15, 2020
2 parents f24033d + 3efe492 commit 0882364
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ to learn how to use Mockery.

The current version can be seen at [docs.mockery.io](http://docs.mockery.io).

## PHPUnit Integration

Mockery ships with some helpers if you are using PHPUnit. You can extend the
[`Mockery\Adapter\Phpunit\MockeryTestCase`](library/Mockery/Adapter/Phpunit/MockeryTestCase.php)
class instead of `PHPUnit\Framework\TestCase`, or if you are already using a
custom base class for your tests, take a look at the traits available in the
[`Mockery\Adapter\Phpunit`](library/Mockery/Adapter/Phpunit) namespace.

## Test Doubles

Test doubles (often called mocks) simulate the behaviour of real objects. They are
Expand Down

0 comments on commit 0882364

Please sign in to comment.