Skip to content

Commit

Permalink
Merge pull request #1128 from unstoppablecarl/update-reserved-methods…
Browse files Browse the repository at this point in the history
…-in-docs

updated reserved methods in docs
  • Loading branch information
davedevelopment committed Aug 16, 2021
2 parents 2c91d64 + cc176c9 commit 5383370
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/mockery/reserved_method_names.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,20 @@ name collision (reported as a PHP fatal error). The methods reserved by
Mockery are:

* ``shouldReceive()``
* ``shouldBeStrict()``
* ``shouldNotReceive()``
* ``allows()``
* ``expects()``
* ``shouldAllowMockingMethod()``
* ``shouldIgnoreMissing()``
* ``asUndefined()``
* ``shouldAllowMockingProtectedMethods()``
* ``makePartial()``
* ``byDefault()``
* ``shouldHaveReceived()``
* ``shouldHaveBeenCalled()``
* ``shouldNotHaveReceived()``
* ``shouldNotHaveBeenCalled()``


In addition, all mocks utilise a set of added methods and protected properties
which cannot exist on the class or object being mocked. These are far less
Expand Down

0 comments on commit 5383370

Please sign in to comment.