, * Pádraic Brady * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ return [ 'meta' => [ 'title' => 'Class name resolution', // Default values. If not specified will be the one used 'prefix' => 'Humbug', 'whitelist' => [], 'whitelist-global-constants' => true, 'whitelist-global-classes' => false, 'whitelist-global-functions' => true, 'registered-classes' => [], 'registered-functions' => [], ], 'Different kind of whitelisted class constant calls in the global scope' => [ 'whitelist' => ['Foo\Bar', 'Foo\Bar\Poz'], 'registered-classes' => [ ['Foo\Bar', 'Humbug\Foo\Bar'], ['Foo\Bar\Poz', 'Humbug\Foo\Bar\Poz'], ], 'payload' => <<<'PHP' <<<'PHP' [ 'whitelist' => [ 'Foo\Bar', 'Foo\Bar\Poz', 'A\Foo', 'A\Foo\Bar', 'A\Foo\Bar\Poz', 'A\Aoo', 'A\Aoo\Aoz', 'A\Aoz', 'A\Aoo\Aoz\Poz', ], 'registered-classes' => [ ['Foo\Bar', 'Humbug\Foo\Bar'], ['Foo\Bar\Poz', 'Humbug\Foo\Bar\Poz'], ['A\Foo', 'Humbug\A\Foo'], ['A\Foo\Bar', 'Humbug\A\Foo\Bar'], ['A\Foo\Bar\Poz', 'Humbug\A\Foo\Bar\Poz'], ['A\Aoo', 'Humbug\A\Aoo'], ['A\Aoo\Aoz', 'Humbug\A\Aoo\Aoz'], ['A\Aoo\Aoz\Poz', 'Humbug\A\Aoo\Aoz\Poz'], ], 'payload' => <<<'PHP'