Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 50ba566

Browse filesBrowse files
committed
[PhpUnitBridge][SymfonyTestsListenerTrait] Remove $testsWithWarnings stack
1 parent e348513 commit 50ba566
Copy full SHA for 50ba566

File tree

Expand file treeCollapse file tree

4 files changed

+0
-24
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+0
-24
lines changed

‎src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerForV5.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerForV5.php
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ public function startTest(\PHPUnit_Framework_Test $test)
4747
$this->trait->startTest($test);
4848
}
4949

50-
public function addWarning(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_Warning $e, $time)
51-
{
52-
$this->trait->addWarning($test, $e, $time);
53-
}
54-
5550
public function endTest(\PHPUnit_Framework_Test $test, $time)
5651
{
5752
$this->trait->endTest($test, $time);

‎src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerForV6.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerForV6.php
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ public function startTest(Test $test)
5252
$this->trait->startTest($test);
5353
}
5454

55-
public function addWarning(Test $test, Warning $e, $time)
56-
{
57-
$this->trait->addWarning($test, $e, $time);
58-
}
59-
6055
public function endTest(Test $test, $time)
6156
{
6257
$this->trait->endTest($test, $time);

‎src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerForV7.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerForV7.php
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ public function startTest(Test $test): void
5555
$this->trait->startTest($test);
5656
}
5757

58-
public function addWarning(Test $test, Warning $e, float $time): void
59-
{
60-
$this->trait->addWarning($test, $e, $time);
61-
}
62-
6358
public function endTest(Test $test, float $time): void
6459
{
6560
$this->trait->endTest($test, $time);

‎src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
-9Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class SymfonyTestsListenerTrait
3737
private $expectedDeprecations = array();
3838
private $gatheredDeprecations = array();
3939
private $previousErrorHandler;
40-
private $testsWithWarnings;
4140
private $reportUselessTests;
4241
private $error;
4342
private $runsInSeparateProcess = false;
@@ -114,7 +113,6 @@ public function startTestSuite($suite)
114113
$Test = 'PHPUnit\Util\Test';
115114
}
116115
$suiteName = $suite->getName();
117-
$this->testsWithWarnings = array();
118116

119117
foreach ($suite->tests() as $test) {
120118
if (!($test instanceof \PHPUnit\Framework\TestCase || $test instanceof TestCase)) {
@@ -245,13 +243,6 @@ public function startTest($test)
245243
}
246244
}
247245

248-
public function addWarning($test, $e, $time)
249-
{
250-
if ($test instanceof \PHPUnit\Framework\TestCase || $test instanceof TestCase) {
251-
$this->testsWithWarnings[$test->getName()] = true;
252-
}
253-
}
254-
255246
public function endTest($test, $time)
256247
{
257248
if (class_exists('PHPUnit_Util_Blacklist', false)) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.