$arguments =
$this->factory->
createArgumentMetadata($this->
signature1(...
));
$this->
assertEquals([ new ArgumentMetadata('foo', self::
class, false, false, null
),
new ArgumentMetadata('bar', 'array', false, false, null
),
new ArgumentMetadata('baz', 'callable', false, false, null
),
],
$arguments);
} public function testNullableTypesSignature() { $arguments =
$this->factory->
createArgumentMetadata([new NullableController(), 'action'
]);
$this->
assertEquals([ new ArgumentMetadata('foo', 'string', false, false, null, true
),
new ArgumentMetadata('bar', \stdClass::
class, false, false, null, true
),
new ArgumentMetadata('baz', 'string', false, true, 'value', true
),
new ArgumentMetadata('last', 'string', false, true, '', false
),
],
$arguments);
} public function testAttributeSignature() {