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 ()
@@ -115,13 +118,13 @@ protected function createCommandTester()
115
118
return new CommandTester ($ command );
116
119
}
117
120
118
- protected function setUp ()
121
+ private function doSetUp ()
119
122
{
120
123
$ this ->files = [];
121
124
@mkdir (sys_get_temp_dir ().'/framework-yml-lint-test ' );
122
125
}
123
126
124
- protected function tearDown ()
127
+ private function doTearDown ()
125
128
{
126
129
foreach ($ this ->files as $ file ) {
127
130
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 \Yaml ;
18
19
19
20
class InlineTest extends TestCase
20
21
{
21
- protected function setUp ()
22
+ use ForwardCompatTestTrait;
23
+
24
+ private function doSetUp ()
22
25
{
23
26
Inline::initialize (0 , 0 );
24
27
}
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