We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd41088 commit 9f20e61Copy full SHA for 9f20e61
tests/bootstrap.php
@@ -1,5 +1,10 @@
1
<?php declare(strict_types = 1);
2
3
+use PHPStan\Testing\PHPStanTestCase;
4
+use PHPUnit\Event\Facade;
5
+use PHPUnit\Event\Test\DataProviderMethodCalled;
6
+use PHPUnit\Event\Test\DataProviderMethodCalledSubscriber;
7
+
8
error_reporting(E_ALL);
9
10
require_once __DIR__ . '/../vendor/autoload.php';
@@ -19,3 +24,16 @@ public function doFoo($i)
19
24
}
20
25
21
26
}');
27
28
+class InitContainerBeforeDataProvider implements DataProviderMethodCalledSubscriber
29
+{
30
31
+ public function notify(DataProviderMethodCalled $event): void
32
+ {
33
+ PHPStanTestCase::getContainer();
34
+ }
35
36
+}
37
38
39
+Facade::instance()->registerSubscriber(new InitContainerBeforeDataProvider());
0 commit comments