public function it_will_fire_an_event_when_http_is_up() { $this->app['config']->set('server-monitor.monitors', ['HttpPing' => [['url' => 'http://www.example.com/']]]); $this->expectsEvent(HttpPingUp::class); Artisan::call('monitor:run'); }