Nelmio\Alice\Definition\Value\DynamicArrayValueTest::provideInputTypes PHP Method

provideInputTypes() public method

public provideInputTypes ( )
    public function provideInputTypes()
    {
        (yield 'null/array' => [null, 'dummy_element', 'Expected quantifier to be either an integer or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"NULL" instead.']);
        (yield 'bool/array' => [true, 'dummy_element', 'Expected quantifier to be either an integer or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"boolean" instead.']);
        (yield 'string/array' => ['', 'dummy_element', 'Expected quantifier to be either an integer or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"string" instead.']);
        (yield 'float/array' => [0.5, 'dummy_element', 'Expected quantifier to be either an integer or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"double" instead.']);
        (yield 'array/array' => [[], 'dummy_element', 'Expected quantifier to be either an integer or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"array" instead.']);
        (yield 'object/array' => [new \stdClass(), 'dummy_element', 'Expected quantifier to be either an integer or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"stdClass" instead.']);
        (yield 'closure/array' => [function () {
        }, 'dummy_element', 'Expected quantifier to be either an integer or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"Closure" instead.']);
        (yield 'int/null' => [-1, null, 'Expected element to be either string, an array or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"NULL" instead.']);
        (yield 'int/bool' => [-1, true, 'Expected element to be either string, an array or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"boolean" instead.']);
        (yield 'int/float' => [-1, 0.5, 'Expected element to be either string, an array or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"double" instead.']);
        (yield 'int/int' => [1, 1, 'Expected element to be either string, an array or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"integer" instead.']);
        (yield 'int/closure' => [-1, function () {
        }, 'Expected element to be either string, an array or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"Closure" instead.']);
        (yield 'int/non value interface object' => [-1, new \stdClass(), 'Expected element to be either string, an array or a "Nelmio\\Alice\\Definition\\ValueInterface" object. Got ' . '"stdClass" instead.']);
    }