@@ -35,9 +35,9 @@ class MyExtensionTest extends AbstractExtensionTestCase
35
35
{
36
36
protected function getContainerExtensions(): array
37
37
{
38
- return array(
38
+ return [
39
39
new MyExtension()
40
- ) ;
40
+ ] ;
41
41
}
42
42
}
43
43
```
@@ -92,7 +92,7 @@ class MyExtensionTest extends AbstractExtensionTestCase
92
92
*/
93
93
public function after_loading_the_correct_parameter_has_been_set()
94
94
{
95
- $this->load(array( 'my' => array( 'enabled' => 'false')) );
95
+ $this->load([ 'my' => [ 'enabled' => 'false'] );
96
96
97
97
...
98
98
}
@@ -149,9 +149,9 @@ class MyCompilerPassTest extends AbstractCompilerPassTestCase
149
149
$this->assertContainerBuilderHasServiceDefinitionWithMethodCall(
150
150
'collecting_service_id',
151
151
'add',
152
- array(
152
+ [
153
153
new Reference('collected_service')
154
- )
154
+ ]
155
155
);
156
156
}
157
157
}
@@ -270,14 +270,14 @@ class ConfigurationTest extends AbstractExtensionConfigurationTestCase
270
270
*/
271
271
public function it_converts_extension_elements_to_extensions()
272
272
{
273
- $expectedConfiguration = array(
274
- 'extensions' => array( 'twig.extension.foo', 'twig.extension.bar')
275
- ) ;
273
+ $expectedConfiguration = [
274
+ 'extensions' => [ 'twig.extension.foo', 'twig.extension.bar']
275
+ ] ;
276
276
277
- $sources = array(
277
+ $sources = [
278
278
__DIR__ . '/Fixtures/config.yml',
279
279
__DIR__ . '/Fixtures/config.xml',
280
- ) ;
280
+ ] ;
281
281
282
282
$this->assertProcessedConfigurationEquals($expectedConfiguration, $sources);
283
283
}
@@ -314,10 +314,10 @@ the given index, and its value is the given value.</dd>
314
314
<dt ><code >assertContainerBuilderHasServiceDefinitionWithServiceLocatorArgument($serviceId, $argumentIndex, $expectedValue)</code ></dt >
315
315
<dd >Assert that the <code >ContainerBuilder</code > for this test has a service definition with the given id, which has an argument
316
316
at the given index, and its value is a ServiceLocator with a reference-map equal to the given value.</dd >
317
- <dt ><code >assertContainerBuilderHasServiceDefinitionWithMethodCall($serviceId, $method, array $arguments = array() , $index = null)</code ></dt >
317
+ <dt ><code >assertContainerBuilderHasServiceDefinitionWithMethodCall($serviceId, $method, array $arguments = [] , $index = null)</code ></dt >
318
318
<dd >Assert that the <code >ContainerBuilder</code > for this test has a service definition with the given id, which has a method call to
319
319
the given method with the given arguments. If index is provided, invocation index order of method call is asserted as well.</dd >
320
- <dt ><code >assertContainerBuilderHasServiceDefinitionWithTag($serviceId, $tag, array $attributes = array() )</code ></dt >
320
+ <dt ><code >assertContainerBuilderHasServiceDefinitionWithTag($serviceId, $tag, array $attributes = [] )</code ></dt >
321
321
<dd >Assert that the <code >ContainerBuilder</code > for this test has a service definition with the given id, which has the given tag with the given arguments.</dd >
322
322
<dt ><code >assertContainerBuilderHasServiceDefinitionWithParent($serviceId, $parentServiceId)</code ></dt >
323
323
<dd >Assert that the <code >ContainerBuilder</code > for this test has a service definition with the given id which is a decorated service and it has the given parent service.</dd >
0 commit comments