public static function fake($eventsToFake = [])
    {
        static::swap($fake = new EventFake(static::getFacadeRoot(), $eventsToFake));

        Model::setEventDispatcher($fake);

        return $fake;
    }
public static function fake($eventsToFake = [])
    {
        static::swap($fake = new EventFake(static::getFacadeRoot(), $eventsToFake));

        Model::setEventDispatcher($fake);

        return $fake;
    }
public static function fake ( $ eventsToFake = [ ] ) { static :: swap ( $ fake = new EventFake ( static :: getFacadeRoot ( ) , $ eventsToFake ) ) ; Model :: setEventDispatcher ( $ fake ) ; return $ fake ; }
Replace the bound instance with a fake.

@param  array|string  $eventsToFake
@return \Illuminate\Support\Testing\Fakes\EventFake
Replace the bound instance with a fake .