summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-kernel/Tests/DependencyInjection/ResettableServicePassTest.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-02-03 13:44:03 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-02-04 11:17:33 +0000
commit7def76c7d817a9ec81e9ae4a03a850514b1a2e1c (patch)
tree3fcf7e8236356daac44f7c17b8c0c5bc736a0926 /vendor/symfony/http-kernel/Tests/DependencyInjection/ResettableServicePassTest.php
parentadfb3656b8dac8505590490f4f8aaf4bea27881b (diff)
downloadwebtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.tar.gz
webtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.tar.bz2
webtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.zip
Working on upgrade wizard and testing
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();