Fix after rebase on fresh master.

This commit is contained in:
Dmitry Khomutov 2017-07-20 21:32:22 +07:00
commit a6ee2756f5
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9

View file

@ -80,7 +80,7 @@ class PhpUnit extends Plugin implements ZeroConfigPluginInterface
return false;
}
$cmd = $this->builder->findBinary('phpunit');
$cmd = $this->findBinary('phpunit');
// run without logging
$ret = null;
$lastLine = exec($cmd.' --log-json . --version');
@ -121,7 +121,7 @@ class PhpUnit extends Plugin implements ZeroConfigPluginInterface
protected function runConfig($directory, $configFile, $logFormat)
{
$options = clone $this->options;
$buildPath = $this->build->getBuildPath() . DIRECTORY_SEPARATOR;
$buildPath = $this->build->getBuildPath();
// Save the results into a log file
$logFile = @tempnam($buildPath, 'jLog_');