Page MenuHomePhabricator
Paste P1128

omgwtfwindows.php
ActivePublic

Authored by hach-que on Apr 23 2014, 2:29 AM.
Tags
None
Referenced Files
F146905: omgwtfwindows.php
Apr 23 2014, 2:29 AM
Subscribers
None
$xml_temp = Filesystem::readRandomCharacters(10).".args.xml";
file_put_contents($xml_temp, $xml_content);
$cover_engine = $this->coverEngine;
$bat_content = <<<EOF
"{$cover_engine}" analyse {$xml_temp}
EOF
;
$bat_temp = Filesystem::readRandomCharacters(10).".bat";
file_put_contents($bat_temp, $bat_content);
$future = new ExecFuture("%C", $bat_temp);
$future->setCWD(Filesystem::resolvePath($this->projectRoot));
return array(
$future,
$assembly_dir.DIRECTORY_SEPARATOR.$xunit_temp,
$cover_temp);

Event Timeline

hach-que changed the title of this paste from untitled to omgwtfwindows.php.
hach-que updated the paste's language from autodetect to autodetect.