alwex / php-casperjs

simple PHP wrapper for CasperJS
MIT License
182 stars 71 forks source link

Allow custom CasperJS run paths with spaces #48

Open dxdc opened 7 years ago

dxdc commented 7 years ago

Using an instance with a custom path to CasperJS would fail if there were spaces within the pathname, i.e.

$CasperJSpath = '/home/dxdc/my app/node_modules/casperjs/bin/';
$casper = new Casper($CasperJSpath);

This PR fixes it.