summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-kernel/Tests/DependencyInjection/ResettableServicePassTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-kernel/Tests/DependencyInjection/ResettableServicePassTest.php')
-rw-r--r--vendor/symfony/http-kernel/Tests/DependencyInjection/ResettableServicePassTest.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/vendor/symfony/http-kernel/Tests/DependencyInjection/ResettableServicePassTest.php b/vendor/symfony/http-kernel/Tests/DependencyInjection/ResettableServicePassTest.php
index f7ea16dbfb..9b23ad003d 100644
--- a/vendor/symfony/http-kernel/Tests/DependencyInjection/ResettableServicePassTest.php
+++ b/vendor/symfony/http-kernel/Tests/DependencyInjection/ResettableServicePassTest.php
@@ -19,14 +19,14 @@ class ResettableServicePassTest extends TestCase
$container = new ContainerBuilder();
$container->register('one', ResettableService::class)
->setPublic(true)
- ->addTag('kernel.reset', array('method' => 'reset'));
+ ->addTag('kernel.reset', ['method' => 'reset']);
$container->register('two', ClearableService::class)
->setPublic(true)
- ->addTag('kernel.reset', array('method' => 'clear'));
+ ->addTag('kernel.reset', ['method' => 'clear']);
$container->register('services_resetter', ServicesResetter::class)
->setPublic(true)
- ->setArguments(array(null, array()));
+ ->setArguments([null, []]);
$container->addCompilerPass(new ResettableServicePass());
$container->compile();
@@ -34,16 +34,16 @@ class ResettableServicePassTest extends TestCase
$definition = $container->getDefinition('services_resetter');
$this->assertEquals(
- array(
- new IteratorArgument(array(
+ [
+ new IteratorArgument([
'one' => new Reference('one', ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE),
'two' => new Reference('two', ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE),
- )),
- array(
+ ]),
+ [
'one' => 'reset',
'two' => 'clear',
- ),
- ),
+ ],
+ ],
$definition->getArguments()
);
}
@@ -58,7 +58,7 @@ class ResettableServicePassTest extends TestCase
$container->register(ResettableService::class)
->addTag('kernel.reset');
$container->register('services_resetter', ServicesResetter::class)
- ->setArguments(array(null, array()));
+ ->setArguments([null, []]);
$container->addCompilerPass(new ResettableServicePass());
$container->compile();
@@ -68,7 +68,7 @@ class ResettableServicePassTest extends TestCase
{
$container = new ContainerBuilder();
$container->register('services_resetter', ServicesResetter::class)
- ->setArguments(array(null, array()));
+ ->setArguments([null, []]);
$container->addCompilerPass(new ResettableServicePass());
$container->compile();