3 namespace Illuminate\Support\Facades
;
5 use Illuminate\Database\Eloquent\Model
;
6 use Illuminate\Support\Testing\Fakes\EventFake
;
9 * @see \Illuminate\Events\Dispatcher
11 class Event
extends Facade
14 * Replace the bound instance with a fake.
16 * @param array|string $eventsToFake
19 public static function fake($eventsToFake = [])
21 static::swap($fake = new EventFake(static::getFacadeRoot(), $eventsToFake));
23 Model
::setEventDispatcher($fake);
27 * Get the registered name of the component.
31 protected static function getFacadeAccessor()