getHeaders(); $this->assertEquals($content, $resp->render()); $this->assertArrayHasKey('Content-Type', $headers); $this->assertEquals($contentType, $headers['Content-Type']); $this->assertArrayHasKey('Content-Disposition', $headers); $pos = strpos($headers['Content-Disposition'], $filename); $this->assertTrue($pos > 0); } public function providesResponseData() { return [ ['1234567890', 'test.txt', 'text/plain'] ]; } }