Respect\Validation\Rules\EachTest::providerForValidInput PHP Метод

providerForValidInput() публичный Метод

    public function providerForValidInput()
    {
        $ruleNotEmpty = new Each($this->getRuleMock(true));
        $ruleAlphaItemIntKey = new Each($this->getRuleMock(true), $this->getRuleMock(true));
        $ruleOnlyKeyValidation = new Each(null, $this->getRuleMock(true));
        $intStack = new \SplStack();
        $intStack->push(1);
        $intStack->push(2);
        $intStack->push(3);
        $intStack->push(4);
        $intStack->push(5);
        $stdClass = new \stdClass();
        $stdClass->name = 'Emmerson';
        $stdClass->age = 22;
        return [[$ruleNotEmpty, [1, 2, 3, 4, 5]], [$ruleNotEmpty, $intStack], [$ruleNotEmpty, $stdClass], [$ruleAlphaItemIntKey, ['a', 'b', 'c', 'd', 'e']], [$ruleOnlyKeyValidation, ['a', 'b', 'c', 'd', 'e']]];
    }