1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
namespace Illuminate\Support\Facades;
use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Testing\Fakes\EventFake;
/** * @see \Illuminate\Events\Dispatcher */ class Event extends Facade { /** * Replace the bound instance with a fake. * * @return void */ public static function fake() { static::swap($fake = new EventFake);
Model::setEventDispatcher($fake); }
/** * Get the registered name of the component. * * @return string */ protected static function getFacadeAccessor() { return 'events'; } }
|