$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() { $arguments =
$this->factory->
createArgumentMetadata([new AttributeController(), 'action'
]);
$this->
assertEquals([ new ArgumentMetadata('baz', 'string', false, false, null, false,
[new Foo('bar'
)]),
],
$arguments);
} public function testMultipleAttributes() { $this->factory->
createArgumentMetadata([new AttributeController(), 'multiAttributeArg'
]);
$this->
assertCount(1,
$this->factory->
createArgumentMetadata([new AttributeController(), 'multiAttributeArg'
])[0
]->
getAttributes());
}