/** * Send response * * @return void */ public function sendResponse() { if ($this->_filePath && $this->getHttpResponseCode() == 200) { $this->_transferAdapter->send($this->_filePath); } else { parent::sendResponse(); } }
/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage File 'nonexistent.file' does not exists */ public function testSendNoFileExistException() { $this->object->send('nonexistent.file'); }