/**
  * @param array $args
  *
  * @return AbstractDevice
  */
 protected function createDevice(array $args = [])
 {
     $ghostscript = new Ghostscript();
     $arguments = new Arguments();
     $arguments->setArguments($args);
     return $this->getMockForAbstractClass(AbstractDevice::class, [$ghostscript, $arguments]);
 }
 /**
  * @param array $arguments
  *
  * @return AbstractDevice
  */
 protected function createDevice(array $arguments = [])
 {
     $processBuilder = new ProcessBuilder();
     $processArguments = new ProcessArguments();
     $processArguments->setArguments($arguments);
     return $this->getMockForAbstractClass('GravityMedia\\Ghostscript\\Device\\AbstractDevice', [$processBuilder, $processArguments]);
 }
 /**
  * @dataProvider provideArgumentsForSetting
  *
  * @param array $arguments
  * @param array $expected
  */
 public function testSettingArguments($arguments, $expected)
 {
     $instance = new Arguments();
     $instance->setArguments($arguments);
     $this->assertEquals($expected, $instance->toArray());
 }