Youshido\Tests\Library\Validator\TypeValidationRuleTest::simpleRulesProvider PHP Method

simpleRulesProvider() public method

public simpleRulesProvider ( )
    public function simpleRulesProvider()
    {
        return [[TypeService::TYPE_ARRAY_OF_FIELDS_CONFIG, ["fieldName" => new StringType()]], [TypeService::TYPE_ANY, null], [TypeService::TYPE_ANY_OBJECT, new StringType()], [TypeService::TYPE_ANY_OBJECT, null, false], [TypeService::TYPE_CALLABLE, function () {
        }], [TypeService::TYPE_CALLABLE, null, false], [TypeService::TYPE_BOOLEAN, true], [TypeService::TYPE_BOOLEAN, false], [TypeService::TYPE_BOOLEAN, null, false], [TypeService::TYPE_ARRAY, []], [TypeService::TYPE_ARRAY, null, false], [TypeService::TYPE_OBJECT_TYPE, new TestObjectType()], [TypeService::TYPE_OBJECT_TYPE, new StringType(), false], [TypeService::TYPE_ARRAY_OF_FIELDS_CONFIG, ["fieldName" => TypeMap::TYPE_STRING]], [TypeService::TYPE_ARRAY_OF_FIELDS_CONFIG, [new Field(['name' => 'id', 'type' => new StringType()])]], [TypeService::TYPE_ARRAY_OF_FIELDS_CONFIG, [], false], [null, null, false], ['invalid rule', null, false]];
    }