Skip to content

Commit 0775bb7

Browse files
committed
chore: skip behat deprecation
1 parent 93e71eb commit 0775bb7

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

phpunit.xml.dist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
<server name="KERNEL_CLASS" value="AppKernel" />
1313
<env name="APP_ENV" value="test" />
1414
<env name="SYMFONY_PHPUNIT_REQUIRE" value="nikic/php-parser:^4.16"/>
15-
<!-- to remove behat extensions in the AppKernel -->
16-
<env name="APP_PHPUNIT" value="true"/>
1715
</php>
1816

1917
<testsuites>

phpunit10.xml.dist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
<server name="KERNEL_DIR" value="tests/Fixtures/app/"/>
1111
<server name="KERNEL_CLASS" value="AppKernel"/>
1212
<env name="APP_ENV" value="test"/>
13-
<!-- to remove behat extensions in the AppKernel -->
14-
<env name="APP_PHPUNIT" value="true"/>
1513
</php>
1614

1715
<testsuites>

tests/.ignored-deprecations

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@
1111
%The "Symfony\\Bundle\\MakerBundle\\Maker\\MakeAuthenticator" class is deprecated, use any of the Security\\Make\* commands instead%
1212
# We don't care as we use this in our tests and the default value is just fine
1313
%Since symfony/validator 7.1: Not passing a value for the "requireTld" option to the Url constraint is deprecated. Its default value will change to "true".%
14+
# https://github.com/FriendsOfBehat/SymfonyExtension/pull/212
15+
%The "Symfony\\Component\\HttpKernel\\DependencyInjection\\Extension" class is considered internal since Symfony 7.1, to be deprecated in 8.1; use Symfony\\Component\\DependencyInjection\\Extension\\Extension instead. It may change without further notice. You should not use it from "FriendsOfBehat\\SymfonyExtension\\Bundle\\DependencyInjection\\FriendsOfBehatSymfonyExtensionExtension".%

tests/Fixtures/app/AppKernel.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,11 @@ public function registerBundles(): array
7474
new MercureBundle(),
7575
new SecurityBundle(),
7676
new WebProfilerBundle(),
77+
new FriendsOfBehatSymfonyExtensionBundle(),
7778
new FrameworkBundle(),
7879
new MakerBundle(),
7980
];
8081

81-
if (null === ($_ENV['APP_PHPUNIT'] ?? null)) {
82-
$bundles[] = new FriendsOfBehatSymfonyExtensionBundle();
83-
}
84-
8582
if (class_exists(DoctrineMongoDBBundle::class)) {
8683
$bundles[] = new DoctrineMongoDBBundle();
8784
}

0 commit comments

Comments
 (0)