File tree Expand file tree Collapse file tree 2 files changed +26
-7
lines changed Expand file tree Collapse file tree 2 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 16
16
use ApiPlatform \Tests \Fixtures \TestBundle \Document \User as UserDocument ;
17
17
use ApiPlatform \Tests \Fixtures \TestBundle \Entity \User ;
18
18
use ApiPlatform \Tests \Fixtures \TestBundle \TestBundle ;
19
+ use ApiPlatform \Tests \PhpUnitBundle ;
19
20
use Doctrine \Bundle \DoctrineBundle \ConnectionFactory ;
20
21
use Doctrine \Bundle \DoctrineBundle \DoctrineBundle ;
21
22
use Doctrine \Bundle \MongoDBBundle \Command \TailCursorDoctrineODMCommand ;
34
35
use Symfony \Component \ErrorHandler \ErrorRenderer \ErrorRendererInterface ;
35
36
use Symfony \Component \HttpClient \Messenger \PingWebhookMessageHandler ;
36
37
use Symfony \Component \HttpFoundation \Session \SessionFactory ;
37
- use Symfony \Component \HttpKernel \Bundle \Bundle ;
38
38
use Symfony \Component \HttpKernel \Kernel ;
39
39
use Symfony \Component \PasswordHasher \Hasher \NativePasswordHasher ;
40
40
use Symfony \Component \Security \Core \Authorization \Strategy \AccessDecisionStrategyInterface ;
@@ -69,12 +69,7 @@ public function registerBundles(): array
69
69
new WebProfilerBundle (),
70
70
new FrameworkBundle (),
71
71
new MakerBundle (),
72
- new class extends Bundle {
73
- public function shutdown (): void
74
- {
75
- restore_exception_handler ();
76
- }
77
- },
72
+ new PhpUnitBundle (),
78
73
];
79
74
80
75
if (null === ($ _ENV ['APP_PHPUNIT ' ] ?? null )) {
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the API Platform project.
5
+ *
6
+ * (c) Kévin Dunglas <[email protected] >
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ declare (strict_types=1 );
13
+
14
+ namespace ApiPlatform \Tests ;
15
+
16
+ use Symfony \Component \HttpKernel \Bundle \Bundle ;
17
+
18
+ final class PhpUnitBundle extends Bundle
19
+ {
20
+ public function shutdown (): void
21
+ {
22
+ restore_exception_handler ();
23
+ }
24
+ }
You can’t perform that action at this time.
0 commit comments