public function testName() { $filename = FILES_DIR . DIRECTORY_SEPARATOR . 'response.txt'; $response = new FileResponse($filename); $this->assertSame('response.txt', $response->getName()); $this->assertSame('text/plain', $response->getType()); $response->setName(''); $this->assertSame('', $response->getName()); $this->assertSame('application/octet-stream', $response->getType()); }