public function testIfDownloadOfMultipleOutputFileWorks()
{
$process = $this->api->createProcess(['inputformat' => 'pdf', 'outputformat' => 'jpg']);
$process->start(['input' => 'upload', 'outputformat' => 'jpg', 'wait' => true, 'converteroptions' => ['page_range' => '1-2'], 'file' => fopen(__DIR__ . '/input.pdf', 'r')])->downloadAll(__DIR__);
$this->assertFileExists(__DIR__ . '/input-1.jpg');
$this->assertFileExists(__DIR__ . '/input-2.jpg');
// cleanup
$process->delete();
@unlink(__DIR__ . '/input-1.jpg');
@unlink(__DIR__ . '/input-2.jpg');
}