tests/GameOfLife/Outputs/Helpers/FfmpegHelperTest.php
/**
     * Checks whether the getters and setters work as expected.
     *
     * @dataProvider setAttributesProvider
     *
     * @covers \Output\Helpers\FfmpegHelper::setBinaryPath()
     * @covers \Output\Helpers\FfmpegHelper::binaryPath()
     * @covers \Output\Helpers\FfmpegHelper::setOptions()
     * @covers \Output\Helpers\FfmpegHelper::options()
     * @covers \Output\Helpers\FfmpegHelper::shellExecutor()
     * @covers \Output\Helpers\FfmpegHelper::setShellExecutor()
     * @covers \Output\Helpers\FfmpegHelper::fileSystemHandler()
     * @covers \Output\Helpers\FfmpegHelper::setFileSystemHandler()
     *
     * @param string $_binaryPath The binary path
     * @param array $_options The option list
     */
Checks whether the getters and setters work as expected.



@param string $_binaryPath The binary path
@param array $_options The option list
Checks whether the getters and setters work as expected . @param string $_binaryPath The binary path @param array $_options The option list
public function testCanSetAttributes(string $_binaryPath, array $_options)
    {
        $shellExecutor = new ShellExecutor();
        $fileSystemHandler = new FileSystemReader();
        $this->ffmpegHelper->setBinaryPath($_binaryPath);
        $this->ffmpegHelper->setOptions($_options);
        $this->ffmpegHelper->setShellExecutor($shellExecutor);
        $this->ffmpegHelper->setFileSystemHandler($fileSystemHandler);
        $this->assertEquals($_binaryPath, $this->ffmpegHelper->binaryPath());
        $this->assertEquals($_options, $this->ffmpegHelper->options());
        $this->assertEquals($shellExecutor, $this->ffmpegHelper->shellExecutor());
        $this->assertEquals($fileSystemHandler, $this->ffmpegHelper->fileSystemHandler());
    }
public function testCanSetAttributes ( string $ _binaryPath , array $ _options ) { $ shellExecutor = new ShellExecutor ( ) ; $ fileSystemHandler = new FileSystemReader ( ) ; $ this -> ffmpegHelper -> setBinaryPath ( $ _binaryPath ) ; $ this -> ffmpegHelper -> setOptions ( $ _options ) ; $ this -> ffmpegHelper -> setShellExecutor ( $ shellExecutor ) ; $ this -> ffmpegHelper -> setFileSystemHandler ( $ fileSystemHandler ) ; $ this -> assertEquals ( $ _binaryPath , $ this -> ffmpegHelper -> binaryPath ( ) ) ; $ this -> assertEquals ( $ _options , $ this -> ffmpegHelper -> options ( ) ) ; $ this -> assertEquals ( $ shellExecutor , $ this -> ffmpegHelper -> shellExecutor ( ) ) ; $ this -> assertEquals ( $ fileSystemHandler , $ this -> ffmpegHelper -> fileSystemHandler ( ) ) ; }
Checks whether the getters and setters work as expected.
Checks whether the getters and setters work as expected .