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

Skip to content

Commit cadcebf

Browse files
committed
call get() after the container was compiled
1 parent cd7e6c4 commit cadcebf

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
@@ -96,11 +96,11 @@ public function testToolbarConfig($toolbarEnabled, $interceptRedirects, $listene
9696

9797
$this->assertSame($listenerInjected, $this->container->has('web_profiler.debug_toolbar'));
9898

99+
$this->assertSaneContainer($this->getDumpedContainer());
100+
99101
if ($listenerInjected) {
100102
$this->assertSame($listenerEnabled, $this->container->get('web_profiler.debug_toolbar')->isEnabled());
101103
}
102-
103-
$this->assertSaneContainer($this->getDumpedContainer());
104104
}
105105

106106
public function getDebugModes()

0 commit comments

Comments
 (0)
0