/**
  * Test the __toString method
  */
 public function testToString()
 {
     $input = new MediaFile();
     self::assertEquals('', (string) $input);
     $input->setFileLocation('/tmp/test');
     self::assertEquals('/tmp/test', (string) $input);
 }
 /**
  * @return string
  * @throws LiveBroadcastInputException
  */
 public function generateInputCmd()
 {
     $inputFilename = $this->media->getFileLocation();
     if (!file_exists($inputFilename)) {
         throw new LiveBroadcastInputException(sprintf('Could not find input file %s', $inputFilename));
     }
     return sprintf('-re -i %s', escapeshellarg($inputFilename));
 }