, * 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 declaration', // 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' => [], ], 'Declaration in the global namespace' => <<<'PHP' [ 'whitelist-global-classes' => true, 'registered-classes' => [ ['A', 'Humbug\A'], ], 'payload' => <<<'PHP' <<<'PHP' [ 'whitelist-global-classes' => true, 'payload' => <<<'PHP' [ 'whitelist' => ['Foo\A'], 'registered-classes' => [ ['Foo\A', 'Humbug\Foo\A'], ], 'payload' => <<<'PHP' [ 'whitelist' => ['Foo\A*'], 'registered-classes' => [ ['Foo\A', 'Humbug\Foo\A'], ['Foo\AA', 'Humbug\Foo\AA'], ['Foo\A\B', 'Humbug\Foo\A\B'], ], 'payload' => <<<'PHP' <<<'PHP' [ 'whitelist' => [ 'Foo\A', 'Bar\B', ], 'registered-classes' => [ ['Foo\A', 'Humbug\Foo\A'], ['Bar\B', 'Humbug\Bar\B'], ], 'payload' => <<<'PHP'