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