From a6ee2756f5e7ece20cfd6b2252c1a374fc178420 Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Thu, 20 Jul 2017 21:32:22 +0700 Subject: [PATCH] Fix after rebase on fresh master. --- src/PHPCensor/Plugin/PhpUnit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PHPCensor/Plugin/PhpUnit.php b/src/PHPCensor/Plugin/PhpUnit.php index 0abf1d51..941ab965 100644 --- a/src/PHPCensor/Plugin/PhpUnit.php +++ b/src/PHPCensor/Plugin/PhpUnit.php @@ -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_');