ParagonIE\EasyDB\Tests\EscapeIdentifierTest::GoodFactoryCreateArgument2EasyDBWithIdentifierProvider PHP Method

GoodFactoryCreateArgument2EasyDBWithIdentifierProvider() public method

EasyDB data provider Returns an array of callables that return instances of EasyDB
See also: EasyDBTest::GoodFactoryCreateArgument2EasyDBProvider()
    public function GoodFactoryCreateArgument2EasyDBWithIdentifierProvider()
    {
        $provider = [['foo', [true, false]], ['foo1', [true, false]], ['foo_2', [true, false]], ['foo.bar', [true]], ['foo.bar.baz', [true]], ['foo.bar.baz.why.would.an.identifier.even.be.this.long.anyway', [true]]];
        return array_reduce($this->GoodFactoryCreateArgument2EasyDBProvider(), function (array $was, array $cbArgs) use($provider) {
            foreach ($provider as $args) {
                foreach (array_reverse($cbArgs) as $cbArg) {
                    array_unshift($args, $cbArg);
                }
                $was[] = $args;
            }
            return $was;
        }, []);
    }