mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
add another test case
This commit is contained in:
parent
314c0a10cf
commit
fc01c1f801
@ -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
|
||||
|
@ -0,0 +1,5 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
|
||||
Yaml::parse('...', \Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP);
|
@ -0,0 +1,5 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
|
||||
Yaml::parse('...', false, false, true);
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user