We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9763452 commit f666176Copy full SHA for f666176
1 file changed
tests/DoctrineIntegration/ODM/DocumentManagerTypeInferenceTest.php
@@ -3,13 +3,18 @@
3
namespace PHPStan\DoctrineIntegration\ODM;
4
5
use PHPStan\Testing\TypeInferenceTestCase;
6
+use function extension_loaded;
7
use const PHP_VERSION_ID;
8
9
final class DocumentManagerTypeInferenceTest extends TypeInferenceTestCase
10
{
11
12
public function dataFileAsserts(): iterable
13
14
+ if (!extension_loaded('mongodb')) {
15
+ self::markTestSkipped('MongoDB extension is not installed.');
16
+ }
17
+
18
yield from $this->gatherAssertTypes(__DIR__ . '/data/documentManagerDynamicReturn.php');
19
yield from $this->gatherAssertTypes(__DIR__ . '/data/documentRepositoryDynamicReturn.php');
20
yield from $this->gatherAssertTypes(__DIR__ . '/data/documentManagerMergeReturn.php');
0 commit comments