public function testConfiguredCommand()
 {
     $mediaInfoCommandBuilder = new MediaInfoCommandBuilder();
     $mediaInfoCommandRunner = $mediaInfoCommandBuilder->buildMediaInfoCommandRunner($this->filePath, array('command' => '/usr/bin/local/mediainfo'));
     $equalsMediaInfoCommandRunner = new MediaInfoCommandRunner($this->filePath, '/usr/bin/local/mediainfo');
     $this->assertEquals($equalsMediaInfoCommandRunner, $mediaInfoCommandRunner);
 }
 public function testBuilderCommand()
 {
     $mediaInfoCommandBuilder = new MediaInfoCommandBuilder();
     $mediaInfoCommandRunner = $mediaInfoCommandBuilder->buildMediaInfoCommandRunner($this->filePath);
     $equalsMediaInfoCommandRunner = new MediaInfoCommandRunner($this->filePath);
     $this->assertEquals($equalsMediaInfoCommandRunner, $mediaInfoCommandRunner);
 }
 /**
  * Call to start asynchronous process.
  *
  * Make call to MediaInfo::getInfoWaitAsync() afterwards to received MediaInfoContainer object.
  *
  * @param $filePath
  */
 public function getInfoStartAsync($filePath)
 {
     $mediaInfoCommandBuilder = new MediaInfoCommandBuilder();
     $this->mediaInfoCommandRunnerAsync = $mediaInfoCommandBuilder->buildMediaInfoCommandRunner($filePath);
     $this->mediaInfoCommandRunnerAsync->start();
 }