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 1212namespace Symfony \Component \Yaml \Tests \Command ;
1313
1414use PHPUnit \Framework \TestCase ;
15- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1615use Symfony \Component \Console \Application ;
1716use Symfony \Component \Console \Output \OutputInterface ;
1817use Symfony \Component \Console \Tester \CommandTester ;
2524 */
2625class LintCommandTest extends TestCase
2726{
28- use ForwardCompatTestTrait;
29-
3027 private $ files ;
3128
3229 public function testLintCorrectFile ()
@@ -128,13 +125,13 @@ protected function createCommandTester()
128125 return new CommandTester ($ command );
129126 }
130127
131- private function doSetUp ()
128+ protected function setUp ()
132129 {
133130 $ this ->files = [];
134131 @mkdir (sys_get_temp_dir ().'/framework-yml-lint-test ' );
135132 }
136133
137- private function doTearDown ()
134+ protected function tearDown ()
138135 {
139136 foreach ($ this ->files as $ file ) {
140137 if (file_exists ($ file )) {
Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Yaml \Tests ;
1313
1414use PHPUnit \Framework \TestCase ;
15- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1615use Symfony \Component \Yaml \Dumper ;
1716use Symfony \Component \Yaml \Parser ;
1817use Symfony \Component \Yaml \Tag \TaggedValue ;
1918use Symfony \Component \Yaml \Yaml ;
2019
2120class DumperTest extends TestCase
2221{
23- use ForwardCompatTestTrait;
24-
2522 protected $ parser ;
2623 protected $ dumper ;
2724 protected $ path ;
@@ -41,14 +38,14 @@ class DumperTest extends TestCase
4138 ],
4239 ];
4340
44- private function doSetUp ()
41+ protected function setUp ()
4542 {
4643 $ this ->parser = new Parser ();
4744 $ this ->dumper = new Dumper ();
4845 $ this ->path = __DIR__ .'/Fixtures ' ;
4946 }
5047
51- private function doTearDown ()
48+ protected function tearDown ()
5249 {
5350 $ this ->parser = null ;
5451 $ this ->dumper = null ;
Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Yaml \Tests ;
1313
1414use PHPUnit \Framework \TestCase ;
15- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1615use Symfony \Component \Yaml \Exception \ParseException ;
1716use Symfony \Component \Yaml \Inline ;
1817use Symfony \Component \Yaml \Tag \TaggedValue ;
1918use Symfony \Component \Yaml \Yaml ;
2019
2120class InlineTest extends TestCase
2221{
23- use ForwardCompatTestTrait;
24-
25- private function doSetUp ()
22+ protected function setUp ()
2623 {
2724 Inline::initialize (0 , 0 );
2825 }
Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Yaml \Tests ;
1313
1414use PHPUnit \Framework \TestCase ;
15- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1615use Symfony \Component \Yaml \Parser ;
1716use Symfony \Component \Yaml \Tag \TaggedValue ;
1817use Symfony \Component \Yaml \Yaml ;
1918
2019class ParserTest extends TestCase
2120{
22- use ForwardCompatTestTrait;
23-
2421 /** @var Parser */
2522 protected $ parser ;
2623
27- private function doSetUp ()
24+ protected function setUp ()
2825 {
2926 $ this ->parser = new Parser ();
3027 }
3128
32- private function doTearDown ()
29+ protected function tearDown ()
3330 {
3431 $ this ->parser = null ;
3532
Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Yaml \Tests ;
1313
1414use PHPUnit \Framework \TestCase ;
15- use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1615use Symfony \Component \Yaml \Yaml ;
1716
1817class YamlTest extends TestCase
1918{
20- use ForwardCompatTestTrait;
21-
2219 public function testParseAndDump ()
2320 {
2421 $ data = ['lorem ' => 'ipsum ' , 'dolor ' => 'sit ' ];
You can’t perform that action at this time.
0 commit comments