@@ -41,12 +41,12 @@ public function testFactoryParametersShouldBeResolved()
41
41
42
42
public function testArgumentParametersShouldBeResolved ()
43
43
{
44
- $ this ->assertSame (array ('bar ' , ' baz ' ), $ this ->fooDefinition ->getArguments ());
44
+ $ this ->assertSame (array ('bar ' , array ( ' bar ' => ' baz ') ), $ this ->fooDefinition ->getArguments ());
45
45
}
46
46
47
47
public function testMethodCallParametersShouldBeResolved ()
48
48
{
49
- $ this ->assertSame (array (array ('foobar ' , array ('bar ' , ' baz ' ))), $ this ->fooDefinition ->getMethodCalls ());
49
+ $ this ->assertSame (array (array ('foobar ' , array ('bar ' , array ( ' bar ' => ' baz ') ))), $ this ->fooDefinition ->getMethodCalls ());
50
50
}
51
51
52
52
public function testPropertyParametersShouldBeResolved ()
@@ -71,7 +71,7 @@ private function createContainerBuilder()
71
71
$ containerBuilder ->setParameter ('foo.class ' , 'Foo ' );
72
72
$ containerBuilder ->setParameter ('foo.factory.class ' , 'FooFactory ' );
73
73
$ containerBuilder ->setParameter ('foo.arg1 ' , 'bar ' );
74
- $ containerBuilder ->setParameter ('foo.arg2 ' , ' baz ' );
74
+ $ containerBuilder ->setParameter ('foo.arg2 ' , array ( ' %foo.arg1% ' => ' baz ') );
75
75
$ containerBuilder ->setParameter ('foo.method ' , 'foobar ' );
76
76
$ containerBuilder ->setParameter ('foo.property.name ' , 'bar ' );
77
77
$ containerBuilder ->setParameter ('foo.property.value ' , 'baz ' );
@@ -80,7 +80,7 @@ private function createContainerBuilder()
80
80
81
81
$ fooDefinition = $ containerBuilder ->register ('foo ' , '%foo.class% ' );
82
82
$ fooDefinition ->setFactory (array ('%foo.factory.class% ' , 'getFoo ' ));
83
- $ fooDefinition ->setArguments (array ('%foo.arg1% ' , '%foo.arg2% ' ));
83
+ $ fooDefinition ->setArguments (array ('%foo.arg1% ' , array ( '%foo.arg1% ' => ' baz ' ) ));
84
84
$ fooDefinition ->addMethodCall ('%foo.method% ' , array ('%foo.arg1% ' , '%foo.arg2% ' ));
85
85
$ fooDefinition ->setProperty ('%foo.property.name% ' , '%foo.property.value% ' );
86
86
$ fooDefinition ->setFile ('%foo.file% ' );
0 commit comments