public function testDownloadMagicHeader() { $response = $this->response; $this->assertException('/deprecated/', function () use($response) { $response->headers('download', 'report.csv'); }); }