public function testCanSetOptions()
{
$inFile = $this->getHtmlAsset();
$outFile = $this->getOutFile('png');
$binary = $this->getBinary();
$image = new Image();
$image->setOptions(array('binary' => $binary, 'type' => 'png', 'transparent', 'width' => 800, 'allow' => array('/tmp', '/test')));
$this->assertInstanceOf('mikehaertl\\wkhtmlto\\Image', $image->setPage($inFile));
$this->assertTrue($image->saveAs($outFile));
$tmpFile = $image->getimageFilename();
$this->assertFileExists($outFile);
$this->assertEquals("{$binary} --transparent --width '800' --allow '/tmp' --allow '/test' '{$inFile}' '{$tmpFile}'", (string) $image->getCommand());
unlink($outFile);
}