. * */ namespace OC\AppFramework\Http; //require_once(__DIR__ . "/../classloader.php"); class ChildDownloadResponse extends DownloadResponse {}; class DownloadResponseTest extends \PHPUnit_Framework_TestCase { protected $response; protected function setUp(){ $this->response = new ChildDownloadResponse('file', 'content'); } public function testHeaders() { $headers = $this->response->getHeaders(); $this->assertContains('attachment; filename="file"', $headers['Content-Disposition']); $this->assertContains('content', $headers['Content-Type']); } }