Skip to content

Commit 43f1d05

Browse files
committed
Remove use of ForwardCompatTrait
1 parent 9ea2af3 commit 43f1d05

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

Tests/ClockMockTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Bridge\PhpUnit\ClockMock;
16-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1716

1817
/**
1918
* @author Dominic Tubach <dominic.tubach@to.com>
@@ -22,14 +21,12 @@
2221
*/
2322
class ClockMockTest extends TestCase
2423
{
25-
use ForwardCompatTestTrait;
26-
27-
private static function doSetUpBeforeClass()
24+
public static function setUpBeforeClass()
2825
{
2926
ClockMock::register(__CLASS__);
3027
}
3128

32-
private function doSetUp()
29+
protected function setUp()
3330
{
3431
ClockMock::withClockMock(1234567890.125);
3532
}

Tests/DnsMockTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Bridge\PhpUnit\DnsMock;
16-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1716

1817
class DnsMockTest extends TestCase
1918
{
20-
use ForwardCompatTestTrait;
21-
22-
private function doTearDown()
19+
protected function tearDown()
2320
{
2421
DnsMock::withMockedHosts(array());
2522
}

Tests/ProcessIsolationTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Symfony\Bridge\PhpUnit\Tests;
44

55
use PHPUnit\Framework\TestCase;
6-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
76

87
/**
98
* Don't remove this test case, it tests the legacy group.
@@ -14,8 +13,6 @@
1413
*/
1514
class ProcessIsolationTest extends TestCase
1615
{
17-
use ForwardCompatTestTrait;
18-
1916
/**
2017
* @expectedDeprecation Test abc
2118
*/

0 commit comments

Comments
 (0)