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