public function setEventDispatcher() { \Krucas\Service\Validator\Validator::setEventDispatcher(m::mock('Illuminate\\Events\\Dispatcher')); }
/** * Bootstrap the application events. * * @return void */ public function boot() { $this->package('edvinaskrucas/validator-service'); Validator::setEventDispatcher($this->app['events']); }