public function setContent($content) { if (null !== $content) { throw new \LogicException('The content cannot be set on a BinaryFileResponse instance.'); } }
/** * @expectedException \LogicException */ public function testSetContent() { $response = new BinaryFileResponse(__FILE__); $response->setContent('foo'); }