8000 call get() after the container was compiled · symfony/symfony@954126b · GitHub
[go: up one dir, main page]

Skip to content

Commit 954126b

Browse files
committed
call get() after the container was compiled
1 parent e8970a6 commit 954126b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/ContainerBuilderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public function testCreateProxyServiceWithRuntimeInstantiator()
3333
$builder->register('foo1', 'ProxyManagerBridgeFooClass')->setFile(__DIR__.'/Fixtures/includes/foo.php');
3434
$builder->getDefinition('foo1')->setLazy(true);
3535

36+
$builder->compile();
37+
3638
/* @var $foo1 \ProxyManager\Proxy\LazyLoadingInterface|\ProxyManager\Proxy\ValueHolderInterface */
3739
$foo1 = $builder->get('foo1');
3840

src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public function testToolbarConfig($enabled)
9999
$extension = new WebProfilerExtension();
100100
$extension->load(array(array('toolbar' => $enabled)), $this->container);
101101

102-
$this->assertSame($enabled, $this->container->get('web_profiler.debug_toolbar')->isEnabled());
103-
104102
$this->assertSaneContainer($this->getDumpedContainer());
103+
104+
$this->assertSame($enabled, $this->container->get('web_profiler.debug_toolbar')->isEnabled());
105105
}
106106

107107
public function getDebugModes()

0 commit comments

Comments
 (0)
0