@@ -31,7 +31,7 @@ public function testLintCorrectFile()
31
31
$ tester = $ this ->createCommandTester ();
32
32
$ filename = $ this ->createFile ('foo: bar ' );
33
33
34
- $ ret = $ tester ->execute (array ('filename ' => array ( $ filename) ), array ('verbosity ' => OutputInterface::VERBOSITY_VERBOSE , 'decorated ' => false ));
34
+ $ ret = $ tester ->execute (array ('filename ' => $ filename ), array ('verbosity ' => OutputInterface::VERBOSITY_VERBOSE , 'decorated ' => false ));
35
35
36
36
$ this ->assertEquals (0 , $ ret , 'Returns 0 in case of success ' );
37
37
$ this ->assertRegExp ('/^\/\/ OK in / ' , trim ($ tester ->getDisplay ()));
@@ -57,7 +57,7 @@ public function testLintIncorrectFile()
57
57
$ tester = $ this ->createCommandTester ();
58
58
$ filename = $ this ->createFile ($ incorrectContent );
59
59
60
- $ ret = $ tester ->execute (array ('filename ' => array ( $ filename) ), array ('decorated ' => false ));
60
+ $ ret = $ tester ->execute (array ('filename ' => $ filename ), array ('decorated ' => false ));
61
61
62
62
$ this ->assertEquals (1 , $ ret , 'Returns 1 in case of error ' );
63
63
$ this ->assertContains ('Unable to parse at line 3 (near "bar"). ' , trim ($ tester ->getDisplay ()));
@@ -68,7 +68,7 @@ public function testConstantAsKey()
68
68
$ yaml = <<<YAML
69
69
!php/const 'Symfony\Component\Yaml\Tests\Command\Foo::TEST': bar
70
70
YAML ;
71
- $ ret = $ this ->createCommandTester ()->execute (array ('filename ' => array ( $ this ->createFile ($ yaml) )), array ('verbosity ' => OutputInterface::VERBOSITY_VERBOSE , 'decorated ' => false ));
71
+ $ ret = $ this ->createCommandTester ()->execute (array ('filename ' => $ this ->createFile ($ yaml )), array ('verbosity ' => OutputInterface::VERBOSITY_VERBOSE , 'decorated ' => false ));
72
72
$ this ->assertSame (0 , $ ret , 'lint:yaml exits with code 0 in case of success ' );
73
73
}
74
74
@@ -77,7 +77,7 @@ public function testCustomTags()
77
77
$ yaml = <<<YAML
78
78
foo: !my_tag {foo: bar}
79
79
YAML ;
80
- $ ret = $ this ->createCommandTester ()->execute (array ('filename ' => array ( $ this ->createFile ($ yaml) ), '--parse-tags ' => true ), array ('verbosity ' => OutputInterface::VERBOSITY_VERBOSE , 'decorated ' => false ));
80
+ $ ret = $ this ->createCommandTester ()->execute (array ('filename ' => $ this ->createFile ($ yaml ), '--parse-tags ' => true ), array ('verbosity ' => OutputInterface::VERBOSITY_VERBOSE , 'decorated ' => false ));
81
81
$ this ->assertSame (0 , $ ret , 'lint:yaml exits with code 0 in case of success ' );
82
82
}
83
83
@@ -86,7 +86,7 @@ public function testCustomTagsError()
86
86
$ yaml = <<<YAML
87
87
foo: !my_tag {foo: bar}
88
88
YAML ;
89
- $ ret = $ this ->createCommandTester ()->execute (array ('filename ' => array ( $ this ->createFile ($ yaml) )), array ('verbosity ' => OutputInterface::VERBOSITY_VERBOSE , 'decorated ' => false ));
89
+ $ ret = $ this ->createCommandTester ()->execute (array ('filename ' => $ this ->createFile ($ yaml )), array ('verbosity ' => OutputInterface::VERBOSITY_VERBOSE , 'decorated ' => false ));
90
90
$ this ->assertSame (1 , $ ret , 'lint:yaml exits with code 1 in case of error ' );
91
91
}
92
92
@@ -99,7 +99,7 @@ public function testLintFileNotReadable()
99
99
$ filename = $ this ->createFile ('' );
100
100
unlink ($ filename );
101
101
102
- $ tester ->execute (array ('filename ' => array ( $ filename) ), array ('decorated ' => false ));
102
+ $ ret = $ tester ->execute (array ('filename ' => $ filename ), array ('decorated ' => false ));
103
103
}
104
104
105
105
/**
@@ -147,5 +147,5 @@ protected function tearDown()
147
147
148
148
class Foo
149
149
{
150
- public const TEST = 'foo ' ;
150
+ const TEST = 'foo ' ;
151
151
}