From 0d0333d50aa81e6fc8a9faecd950a41afbc3a230 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 23 Sep 2013 08:34:28 -0700 Subject: [PATCH] Fix an issue where method prototypes have different signatures Summary: PHP whines about this: > [2013-09-23 08:09:22] ERROR 2048: Declaration of CSharpToolsTestEngine::loadEnvironment() should be compatible with XUnitTestEngine::loadEnvironment($config_item = 'unit.xunit...') at [/INSECURE/devtools/arcanist/src/unit/engine/CSharpToolsTestEngine.php:13] Auditors: jamesr, btrahan --- src/unit/engine/CSharpToolsTestEngine.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/unit/engine/CSharpToolsTestEngine.php b/src/unit/engine/CSharpToolsTestEngine.php index 95e6d12d..c4de29b5 100644 --- a/src/unit/engine/CSharpToolsTestEngine.php +++ b/src/unit/engine/CSharpToolsTestEngine.php @@ -23,14 +23,16 @@ final class CSharpToolsTestEngine extends XUnitTestEngine { * of configuration values and to pull in the cstools config for * code coverage. */ - protected function loadEnvironment() { + protected function loadEnvironment( + $config_item = 'unit.csharp.xunit.binary') { + $working = $this->getWorkingCopy(); $this->xunitHintPath = $working->getConfig('unit.csharp.xunit.binary'); $this->cscoverHintPath = $working->getConfig('unit.csharp.cscover.binary'); $this->matchRegex = $working->getConfig('unit.csharp.coverage.match'); $this->excludedFiles = $working->getConfig('unit.csharp.coverage.excluded'); - parent::loadEnvironment('unit.csharp.xunit.binary'); + parent::loadEnvironment($config_item); if ($this->getEnableCoverage() === false) { return; -- 2.43.0