public report ( Exception $e ) | ||
$e | Exception |
public function report(Exception $e)
{
return parent::report($e);
}
public function testReport() { $path = base_path('tests/storage/logs/report.log'); \Log::useFiles($path); $this->handler->report(new \ErrorException('testing error')); $this->assertFileExists($path); $content = file_get_contents($path); $this->assertNotFalse(strpos($content, 'testing error')); $this->beforeApplicationDestroyed(function () use($path) { \File::delete($path); }); }