Skip to content

Commit

Permalink
Merge pull request #127 from alexsnowb/master
Browse files Browse the repository at this point in the history
Fix default options pass to xfvb-run command
  • Loading branch information
mikehaertl committed Oct 21, 2015
2 parents 8f62d1a + fc06b61 commit bb57824
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Command extends BaseCommand
/**
* @var string options to pass to the xfvb-run command. Default is `--server-args="-screen 0, 1024x768x24"`.
*/
public $xvfbRunOptions = '--server-args="-screen 0, 1024x768x24"';
public $xvfbRunOptions = '-a --server-args="-screen 0, 1024x768x24"';

/**
* @param array $args args to add to the command. These can be:
Expand Down
2 changes: 1 addition & 1 deletion tests/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function testCanUseXvfbRun()

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

Expand Down
2 changes: 1 addition & 1 deletion tests/PdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public function testCanUseXvfbRun()
$this->assertTrue($pdf->saveAs($outFile));

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

Expand Down

0 comments on commit bb57824

Please sign in to comment.