Nelmio\Alice\Definition\Value\OptionalValueTest::provideInputValues PHP Method

provideInputValues() public method

public provideInputValues ( )
    public function provideInputValues()
    {
        (yield 'null/string/string' => [null, 'first_member', 'second_member', 'Expected quantifier to be either a scalar value or an instance of "Nelmio\\Alice\\Definition\\ValueInterface". ' . 'Got "NULL" instead.']);
        (yield 'array/string/string' => [[], 'first_member', 'second_member', 'Expected quantifier to be either a scalar value or an instance of "Nelmio\\Alice\\Definition\\ValueInterface". ' . 'Got "array" instead.']);
        (yield 'stdClass/string/string' => [new \stdClass(), 'first_member', 'second_member', 'Expected quantifier to be either a scalar value or an instance of "Nelmio\\Alice\\Definition\\ValueInterface". ' . 'Got "stdClass" instead.']);
        (yield 'string/null/string' => ['quantifier', null, 'second_member', 'Expected first member to be either a string or an instance of "Nelmio\\Alice\\Definition\\ValueInterface". ' . 'Got "NULL" instead.']);
        (yield 'string/array/string' => ['quantifier', [], 'second_member', 'Expected first member to be either a string or an instance of "Nelmio\\Alice\\Definition\\ValueInterface". ' . 'Got "array" instead.']);
        (yield 'string/stdClass/string' => ['quantifier', new \stdClass(), 'second_member', 'Expected first member to be either a string or an instance of "Nelmio\\Alice\\Definition\\ValueInterface". ' . 'Got "stdClass" instead.']);
        (yield 'string/string/array' => ['quantifier', 'first_member', [], 'Expected second member to be either null, a string or an instance of "Nelmio\\Alice\\Definition\\ValueInterface". ' . 'Got "array" instead.']);
        (yield 'string/string/stdClass' => ['quantifier', 'first_member', new \stdClass(), 'Expected second member to be either null, a string or an instance of "Nelmio\\Alice\\Definition\\ValueInterface". ' . 'Got "stdClass" instead.']);
    }