*/ public function mockery_getGroups(); /** * @return string[] */ public function mockery_getMockableMethods(); /** * @return array */ public function mockery_getMockableProperties(); /** * Return the name for this mock * * @return string */ public function mockery_getName(); /** * Alternative setup method to constructor * * @param object $partialObject * * @return void */ public function mockery_init(?Container $container = null, $partialObject = null); /** * @return bool */ public function mockery_isAnonymous(); /** * Set current ordered number * * @param int $order * * @return int */ public function mockery_setCurrentOrder($order); /** * Return the expectations director for the given method * * @param string $method * * @return null|ExpectationDirector */ public function mockery_setExpectationsFor($method, ExpectationDirector $director); /** * Set ordering for a group * * @param string $group * @param int $order * * @return void */ public function mockery_setGroup($group, $order); /** * Tear down tasks for this mock * * @return void */ public function mockery_teardown(); /** * Validate the current mock's ordering * * @param string $method * @param int $order * * @throws Exception * * @return void */ public function mockery_validateOrder($method, $order); /** * Iterate across all expectation directors and validate each * * @throws Throwable * * @return void */ public function mockery_verify(); /** * Allows additional methods to be mocked that do not explicitly exist on mocked class * * @param string $method name of the method to be mocked */ public function shouldAllowMockingMethod($method); /** * @return self */ public function shouldAllowMockingProtectedMethods(); /** * Set mock to defer unexpected methods to its parent if possible * * @deprecated since 1.4.0. Please use makePartial() instead. * * @return self */ public function shouldDeferMissing(); /** * @return self */ public function shouldHaveBeenCalled(); /** * @param string $method * @param null|array|Closure $args * * @return mixed */ public function shouldHaveReceived($method, $args = null); /** * Set mock to ignore unexpected methods and return Undefined class * * @template TReturnValue * * @param TReturnValue $returnValue the default return value for calls to missing functions on this mock * * @return self */ public function shouldIgnoreMissing($returnValue = null); /** * @param null|array $args (optional) * * @return mixed */ public function shouldNotHaveBeenCalled(?array $args = null); /** * @param string $method * @param null|array|Closure $args * * @return mixed */ public function shouldNotHaveReceived($method, $args = null); /** * Shortcut method for setting an expectation that a method should not be called. * * @param string ...$methodNames one or many methods that are expected not to be called in this mock * * @return Expectation|ExpectationInterface|HigherOrderMessage */ public function shouldNotReceive(...$methodNames); /** * Set expected method calls * * @param string ...$methodNames one or many methods that are expected to be called in this mock * * @return Expectation|ExpectationInterface|HigherOrderMessage */ public function shouldReceive(...$methodNames); }