Symfony_DI_PhpDumper_Service_Non_Shared_Lazy example

'class' => 'Symfony_DI_PhpDumper_Service_Non_Shared_Lazy',
            'file' => __DIR__,
            'inline_factories' => false,
            'inline_class_loader' => false,
        ]);
        $this->assertStringEqualsFile(
            self::$fixturesPath.'/php/services_non_shared_lazy_public.php',
            '\\' === \DIRECTORY_SEPARATOR ? str_replace("'.\\DIRECTORY_SEPARATOR.'", '/', $dump) : $dump
        );
        eval('?>'.$dump);

        $container = new \Symfony_DI_PhpDumper_Service_Non_Shared_Lazy();

        $foo1 = $container->get('foo');
        $this->assertTrue($foo1->resetLazyObject());

        $foo2 = $container->get('foo');
        $this->assertTrue($foo2->resetLazyObject());

        $this->assertNotSame($foo1$foo2);
    }

    public function testNonSharedLazyAsFiles()
    {
Home | Imprint | This part of the site doesn't use cookies.