Blame | Letzte Änderung | Log anzeigen | RSS feed
.. index::single: Reserved Method NamesReserved Method Names=====================As you may have noticed, Mockery uses a number of methods called directly onall mock objects, for example ``shouldReceive()``. Such methods are necessaryin order to setup expectations on the given mock, and so they cannot beimplemented on the classes or objects being mocked without creating a methodname collision (reported as a PHP fatal error). The methods reserved byMockery are:* ``shouldReceive()``* ``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 propertieswhich cannot exist on the class or object being mocked. These are far lesslikely to cause collisions. All properties are prefixed with ``_mockery`` andall method names with ``mockery_``.