/** * Test response as download */ public function testAsDownload() { // create an instance $response = CCResponse::create(); // just run the method to check for errors $response->as_download(); // just run the method to check for errors $response->as_download('myfile.xml'); // just run the method to check for errors CCResponse::download("Hello File"); // just run the method to check for errors CCResponse::download("Hello File", 'myfile.txt'); // just run the method to check for errors CCResponse::download("Hello File", 'myfile.txt', 201); }