From f9869c48b03c9c8e25562e51c5c62a0c6edfc167 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sat, 7 Sep 2019 11:43:26 +0200 Subject: [PATCH] Rename variable --- src/Util/Log/JUnit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Util/Log/JUnit.php b/src/Util/Log/JUnit.php index 13b9509024e..9320c92e7fd 100644 --- a/src/Util/Log/JUnit.php +++ b/src/Util/Log/JUnit.php @@ -45,7 +45,7 @@ class JUnit extends Printer implements TestListener /** * @var bool */ - protected $reportUselessTests = false; + protected $reportRiskyTests = false; /** * @var bool @@ -104,7 +104,7 @@ class JUnit extends Printer implements TestListener * * @throws \PHPUnit\Framework\Exception */ - public function __construct($out = null, bool $reportUselessTests = false) + public function __construct($out = null, bool $reportRiskyTests = false) { $this->document = new DOMDocument('1.0', 'UTF-8'); $this->document->formatOutput = true; @@ -114,7 +114,7 @@ public function __construct($out = null, bool $reportUselessTests = false) parent::__construct($out); - $this->reportUselessTests = $reportUselessTests; + $this->reportRiskyTests = $reportRiskyTests; } /** @@ -175,7 +175,7 @@ public function addIncompleteTest(Test $test, \Throwable $t, float $time): void */ public function addRiskyTest(Test $test, \Throwable $t, float $time): void { - if (!$this->reportUselessTests || $this->currentTestCase === null) { + if (!$this->reportRiskyTests || $this->currentTestCase === null) { return; }