File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Yaml \Tests \Command ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
15
16
use Symfony \Component \Console \Application ;
16
17
use Symfony \Component \Console \Output \OutputInterface ;
17
18
use Symfony \Component \Console \Tester \CommandTester ;
24
25
*/
25
26
class LintCommandTest extends TestCase
26
27
{
28
+ use ForwardCompatTestTrait;
29
+
27
30
private $ files ;
28
31
29
32
public function testLintCorrectFile ()
@@ -127,13 +130,13 @@ protected function createCommandTester()
127
130
return new CommandTester ($ command );
128
131
}
129
132
130
- protected function setUp ()
133
+ private function doSetUp ()
131
134
{
132
135
$ this ->files = [];
133
136
@mkdir (sys_get_temp_dir ().'/framework-yml-lint-test ' );
134
137
}
135
138
136
- protected function tearDown ()
139
+ private function doTearDown ()
137
140
{
138
141
foreach ($ this ->files as $ file ) {
139
142
if (file_exists ($ file )) {
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Yaml \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
15
16
use Symfony \Component \Yaml \Dumper ;
16
17
use Symfony \Component \Yaml \Parser ;
17
18
use Symfony \Component \Yaml \Tag \TaggedValue ;
18
19
use Symfony \Component \Yaml \Yaml ;
19
20
20
21
class DumperTest extends TestCase
21
22
{
23
+ use ForwardCompatTestTrait;
24
+
22
25
protected $ parser ;
23
26
protected $ dumper ;
24
27
protected $ path ;
@@ -38,14 +41,14 @@ class DumperTest extends TestCase
38
41
],
39
42
];
40
43
41
- protected function setUp ()
44
+ private function doSetUp ()
42
45
{
43
46
$ this ->parser = new Parser ();
44
47
$ this ->dumper = new Dumper ();
45
48
$ this ->path = __DIR__ .'/Fixtures ' ;
46
49
}
47
50
48
- protected function tearDown ()
51
+ private function doTearDown ()
49
52
{
50
53
$ this ->parser = null ;
51
54
$ this ->dumper = null ;
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Yaml \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
15
16
use Symfony \Component \Yaml \Exception \ParseException ;
16
17
use Symfony \Component \Yaml \Inline ;
17
18
use Symfony \Component \Yaml \Tag \TaggedValue ;
18
19
use Symfony \Component \Yaml \Yaml ;
19
20
20
21
class InlineTest extends TestCase
21
22
{
22
- protected function setUp ()
23
+ use ForwardCompatTestTrait;
24
+
25
+ private function doSetUp ()
23
26
{
24
27
Inline::initialize (0 , 0 );
25
28
}
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Yaml \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
15
16
use Symfony \Component \Yaml \Exception \ParseException ;
16
17
use Symfony \Component \Yaml \Parser ;
17
18
use Symfony \Component \Yaml \Tag \TaggedValue ;
18
19
use Symfony \Component \Yaml \Yaml ;
19
20
20
21
class ParserTest extends TestCase
21
22
{
23
+ use ForwardCompatTestTrait;
24
+
22
25
/** @var Parser */
23
26
protected $ parser ;
24
27
You can’t perform that action at this time.
0 commit comments