50 $obj = ObjectFactory::getObjectFromSpec( [
51 'class' =>
'ObjectFactoryTestFixture',
52 'args' => [
function() {
56 'setter' => [
function() {
60 'closure_expansion' =>
true,
62 $this->assertInternalType(
'string', $obj->args[0] );
63 $this->assertSame(
'unwrapped', $obj->args[0] );
64 $this->assertInternalType(
'string', $obj->setterArgs[0] );
65 $this->assertSame(
'unwrapped', $obj->setterArgs[0] );
67 $obj = ObjectFactory::getObjectFromSpec( [
68 'class' =>
'ObjectFactoryTestFixture',
69 'args' => [
function() {
73 'setter' => [
function() {
78 $this->assertInternalType(
'string', $obj->args[0] );
79 $this->assertSame(
'unwrapped', $obj->args[0] );
80 $this->assertInternalType(
'string', $obj->setterArgs[0] );
81 $this->assertSame(
'unwrapped', $obj->setterArgs[0] );
137 '1 args' => [ [ 1, ] ],
138 '2 args' => [ [ 1, 2, ] ],
139 '3 args' => [ [ 1, 2, 3, ] ],
140 '4 args' => [ [ 1, 2, 3, 4, ] ],
141 '5 args' => [ [ 1, 2, 3, 4, 5, ] ],
142 '6 args' => [ [ 1, 2, 3, 4, 5, 6, ] ],
143 '7 args' => [ [ 1, 2, 3, 4, 5, 6, 7, ] ],
144 '8 args' => [ [ 1, 2, 3, 4, 5, 6, 7, 8, ] ],
145 '9 args' => [ [ 1, 2, 3, 4, 5, 6, 7, 8, 9, ] ],
146 '10 args' => [ [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ] ],
147 '11 args' => [ [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ] ],