Illuminate\Support\Facades\Facade::shouldReceive PHP 메소드

shouldReceive() 공개 정적인 메소드

Initiate a mock expectation on the facade.
public static shouldReceive ( ) : Expectation
리턴 Mockery\Expectation
    public static function shouldReceive()
    {
        $name = static::getFacadeAccessor();
        if (static::isMock()) {
            $mock = static::$resolvedInstance[$name];
        } else {
            $mock = static::createFreshMockInstance($name);
        }
        return call_user_func_array([$mock, 'shouldReceive'], func_get_args());
    }