signature4 example


        $arguments = $this->factory->createArgumentMetadata($this->signature3(...));

        $this->assertEquals([
            new ArgumentMetadata('bar', FakeClassThatDoesNotExist::class, false, false, null),
            new ArgumentMetadata('baz', 'Fake\ImportedAndFake', false, false, null),
        ]$arguments);
    }

    public function testSignature4()
    {
        $arguments = $this->factory->createArgumentMetadata($this->signature4(...));

        $this->assertEquals([
            new ArgumentMetadata('foo', null, false, true, 'default'),
            new ArgumentMetadata('bar', null, false, true, 500),
            new ArgumentMetadata('baz', null, false, true, []),
        ]$arguments);
    }

    public function testSignature5()
    {
        $arguments = $this->factory->createArgumentMetadata($this->signature5(...));

        
Home | Imprint | This part of the site doesn't use cookies.