add another test case

This commit is contained in:
Tomas Votruba 2018-07-18 16:08:02 +02:00
parent 314c0a10cf
commit fc01c1f801
4 changed files with 17 additions and 8 deletions

View File

@ -23,6 +23,7 @@ final class ArgumentDefaultValueReplacerRectorTest extends AbstractRectorTestCas
yield [__DIR__ . '/Wrong/wrong.php.inc', __DIR__ . '/Correct/correct.php.inc'];
yield [__DIR__ . '/Wrong/wrong2.php.inc', __DIR__ . '/Correct/correct2.php.inc'];
yield [__DIR__ . '/Wrong/wrong3.php.inc', __DIR__ . '/Correct/correct3.php.inc'];
yield [__DIR__ . '/Wrong/wrong4.php.inc', __DIR__ . '/Correct/correct4.php.inc'];
}
protected function provideConfig(): string

View File

@ -0,0 +1,5 @@
<?php declare(strict_types=1);
use Symfony\Component\Yaml\Yaml;
Yaml::parse('...', \Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP);

View File

@ -0,0 +1,5 @@
<?php declare(strict_types=1);
use Symfony\Component\Yaml\Yaml;
Yaml::parse('...', false, false, true);

View File

@ -8,7 +8,12 @@ services:
before: 'Symfony\Component\DependencyInjection\ContainerBuilder::SCOPE_PROTOTYPE'
after: false
-
class: 'Symfony\Component\Yaml\Yaml'
method: 'parse'
position: 1
before: ['false', 'false', 'true']
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP'
-
class: 'Symfony\Component\Yaml\Yaml'
@ -16,13 +21,6 @@ services:
position: 1
before: ['false', 'true']
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT'
#
# -
# class: 'Symfony\Component\Yaml\Yaml'
# method: 'parse'
# position: 1
# replacement:
# ['false', 'false', 'true']: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP'
-
class: 'Symfony\Component\Yaml\Yaml'