Skip to content

Commit f9869c4

Browse files
Rename variable
1 parent cb87c26 commit f9869c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Util/Log/JUnit.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class JUnit extends Printer implements TestListener
4545
/**
4646
* @var bool
4747
*/
48-
protected $reportUselessTests = false;
48+
protected $reportRiskyTests = false;
4949

5050
/**
5151
* @var bool
@@ -104,7 +104,7 @@ class JUnit extends Printer implements TestListener
104104
*
105105
* @throws \PHPUnit\Framework\Exception
106106
*/
107-
public function __construct($out = null, bool $reportUselessTests = false)
107+
public function __construct($out = null, bool $reportRiskyTests = false)
108108
{
109109
$this->document = new DOMDocument('1.0', 'UTF-8');
110110
$this->document->formatOutput = true;
@@ -114,7 +114,7 @@ public function __construct($out = null, bool $reportUselessTests = false)
114114

115115
parent::__construct($out);
116116

117-
$this->reportUselessTests = $reportUselessTests;
117+
$this->reportRiskyTests = $reportRiskyTests;
118118
}
119119

120120
/**
@@ -175,7 +175,7 @@ public function addIncompleteTest(Test $test, \Throwable $t, float $time): void
175175
*/
176176
public function addRiskyTest(Test $test, \Throwable $t, float $time): void
177177
{
178-
if (!$this->reportUselessTests || $this->currentTestCase === null) {
178+
if (!$this->reportRiskyTests || $this->currentTestCase === null) {
179179
return;
180180
}
181181

0 commit comments

Comments
 (0)