]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix an issue where method prototypes have different signatures
authorepriestley <git@epriestley.com>
Mon, 23 Sep 2013 15:34:28 +0000 (08:34 -0700)
committerepriestley <git@epriestley.com>
Mon, 23 Sep 2013 15:34:28 +0000 (08:34 -0700)
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

index 95e6d12d33f3d7239905ec9d5d742657bb982152..c4de29b5c118e3aa80883da1671070d19d56c956 100644 (file)
@@ -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;