Skip to content

Commit bb57824

Browse files
committed
Merge pull request #127 from alexsnowb/master
Fix default options pass to xfvb-run command
2 parents 8f62d1a + fc06b61 commit bb57824

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Command extends BaseCommand
2929
/**
3030
* @var string options to pass to the xfvb-run command. Default is `--server-args="-screen 0, 1024x768x24"`.
3131
*/
32-
public $xvfbRunOptions = '--server-args="-screen 0, 1024x768x24"';
32+
public $xvfbRunOptions = '-a --server-args="-screen 0, 1024x768x24"';
3333

3434
/**
3535
* @param array $args args to add to the command. These can be:

tests/ImageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function testCanUseXvfbRun()
172172

173173
$tmpFile = $image->getImageFilename();
174174
$command = (string)$image->getCommand();
175-
$this->assertEquals("xvfb-run --server-args=\"-screen 0, 1024x768x24\" $binary '$inFile' '$tmpFile'", $command);
175+
$this->assertEquals("xvfb-run -a --server-args=\"-screen 0, 1024x768x24\" $binary '$inFile' '$tmpFile'", $command);
176176
unlink($outFile);
177177
}
178178

tests/PdfTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public function testCanUseXvfbRun()
319319
$this->assertTrue($pdf->saveAs($outFile));
320320

321321
$tmpFile = $pdf->getPdfFilename();
322-
$this->assertEquals("xvfb-run --server-args=\"-screen 0, 1024x768x24\" $binary '$inFile' '$tmpFile'", (string) $pdf->getCommand());
322+
$this->assertEquals("xvfb-run -a --server-args=\"-screen 0, 1024x768x24\" $binary '$inFile' '$tmpFile'", (string) $pdf->getCommand());
323323
unlink($outFile);
324324
}
325325

0 commit comments

Comments
 (0)