/** * Initiate a mock expectation on the facade. * * @param dynamic * * @return \Mockery\Expectation */ public static function shouldReceive() { $name = static::getFacadeAccessor(); if (static::isMock()) { $mock = static::$resolvedInstance[$name]; } else { static::$resolvedInstance[$name] = $mock = \Mockery::mock(static::getMockableClass($name)); static::$app->instance($name, $mock); } return call_user_func_array(array($mock, 'shouldReceive'), func_get_args()); }
/** * "Extend" an abstract type in the container. * * @param string $abstract * @param Closure $closure * * @return void */ public static function extend($abstract, Closure $closure) { return \Ape\Application::extend($abstract, $closure); }