Neos\Flow\Tests\Unit\ObjectManagement\Proxy\ProxyClassTest::proxyClassesDataProvider PHP Method

proxyClassesDataProvider() public method

public proxyClassesDataProvider ( ) : array
return array
    public function proxyClassesDataProvider()
    {
        return [['originalClassName' => '\\Acme\\Namespace\\ClassName', 'originalClassAnnotations' => [], 'originalClassDocumentation' => '', 'originalClassConstants' => [['name' => 'TEST_CONSTANT', 'value' => '1']], 'expectedProxyCode' => "namespace \\Acme\\Namespace;\n" . "\n" . "use Doctrine\\ORM\\Mapping as ORM;\n" . "use Neos\\Flow\\Annotations as Flow;\n" . "\n" . 'class ClassName extends ClassName' . Compiler::ORIGINAL_CLASSNAME_SUFFIX . " implements \\Neos\\Flow\\ObjectManagement\\Proxy\\ProxyInterface {\n\n" . "    const TEST_CONSTANT = 1;\n\n" . '}'], ['originalClassName' => '\\ClassWithoutNamespace', 'originalClassAnnotations' => [], 'originalClassDocumentation' => '', 'originalClassConstants' => [['name' => 'TEST_CONSTANT', 'value' => '1']], 'expectedProxyCode' => "use Doctrine\\ORM\\Mapping as ORM;\n" . "use Neos\\Flow\\Annotations as Flow;\n" . "\n" . 'class ClassWithoutNamespace extends ClassWithoutNamespace' . Compiler::ORIGINAL_CLASSNAME_SUFFIX . " implements \\Neos\\Flow\\ObjectManagement\\Proxy\\ProxyInterface {\n\n" . "    const TEST_CONSTANT = 1;\n\n" . '}'], ['originalClassName' => 'ClassWithoutNamespace', 'originalClassAnnotations' => [], 'originalClassDocumentation' => '', 'originalClassConstants' => [['name' => 'TEST_CONSTANT', 'value' => '1']], 'expectedProxyCode' => "use Doctrine\\ORM\\Mapping as ORM;\n" . "use Neos\\Flow\\Annotations as Flow;\n" . "\n" . 'class ClassWithoutNamespace extends ClassWithoutNamespace' . Compiler::ORIGINAL_CLASSNAME_SUFFIX . " implements \\Neos\\Flow\\ObjectManagement\\Proxy\\ProxyInterface {\n\n" . "    const TEST_CONSTANT = 1;\n\n" . '}']];
    }