Skip to content

Commit 215ab86

Browse files
[FrameworkBundle] Fix tests
1 parent d261eeb commit 215ab86

File tree

8 files changed

+8
-7
lines changed

8 files changed

+8
-7
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,6 +2366,7 @@ protected function createContainer(array $data = [])
23662366
'kernel.project_dir' => __DIR__,
23672367
'kernel.debug' => false,
23682368
'kernel.environment' => 'test',
2369+
'kernel.runtime_mode.web' => true,
23692370
'kernel.name' => 'kernel',
23702371
'kernel.container_class' => 'testContainer',
23712372
'container.build_hash' => 'Abc1234',

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10_as_files.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class ProjectServiceContainer extends Container
120120

121121
use Symfony\Component\DependencyInjection\Dumper\Preloader;
122122

123-
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
123+
if (in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
124124
return;
125125
}
126126

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_as_files.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ class ProjectServiceContainer extends Container
717717

718718
use Symfony\Component\DependencyInjection\Dumper\Preloader;
719719

720-
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
720+
if (in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
721721
return;
722722
}
723723

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_inlined_factories.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ class ProjectServiceContainer extends Container
560560

561561
use Symfony\Component\DependencyInjection\Dumper\Preloader;
562562

563-
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
563+
if (in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
564564
return;
565565
}
566566

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_inlined_factories_with_tagged_iterrator.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class ProjectServiceContainer extends Container
8585

8686
use Symfony\Component\DependencyInjection\Dumper\Preloader;
8787

88-
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
88+
if (in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
8989
return;
9090
}
9191

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_lazy_inlined_factories.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class ProjectServiceContainer extends Container
153153

154154
use Symfony\Component\DependencyInjection\Dumper\Preloader;
155155

156-
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
156+
if (in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
157157
return;
158158
}
159159

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_deprecated_parameters_as_files.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class ProjectServiceContainer extends Container
161161

162162
use Symfony\Component\DependencyInjection\Dumper\Preloader;
163163

164-
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
164+
if (in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
165165
return;
166166
}
167167

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services_non_shared_lazy_as_files.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Symfony_DI_PhpDumper_Service_Non_Shared_Lazy_As_File extends Container
129129

130130
use Symfony\Component\DependencyInjection\Dumper\Preloader;
131131

132-
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
132+
if (in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
133133
return;
134134
}
135135

0 commit comments

Comments
 (0)