class ArgumentMetadataFactoryTest extends TestCase
{ private ArgumentMetadataFactory
$factory;
protected function setUp(): void
{ $this->factory =
new ArgumentMetadataFactory();
} public function testSignature1() { $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 testSignature2() { $arguments =
$this->factory->
createArgumentMetadata($this->
signature2(...
));