Skip to content

Commit cf856b0

Browse files
committed
Update PHPStanPHPUnitExtension.php
1 parent 291af4b commit cf856b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Testing/PHPUnit/PHPStanPHPUnitExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public function bootstrap(
1818
ParameterCollection $parameters,
1919
): void
2020
{
21+
// use multiple subscribers which all initialize the test-container.
22+
// we need to make sure we only initialize once per test-class.
2123
$facade->registerSubscriber(
2224
new InitContainerBeforeDataProviderSubscriber(),
2325
);

0 commit comments

Comments
 (0)