Skip to content

Commit

Permalink
Skip testAnnotationsBundleMappingDetection if the `AnnotationDriver…
Browse files Browse the repository at this point in the history
…` isn’t available
  • Loading branch information
MatTheCat committed Nov 4, 2024
1 parent b5beb79 commit 78d3558
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/DependencyInjection/DoctrineExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,10 @@ public function testAnnotationsBundleMappingDetection(): void
self::markTestSkipped('This test requires ORM');
}

if (! class_exists(AnnotationDriver::class)) {
self::markTestSkipped('This test requires the AnnotationDriver');
}

$container = $this->getContainer(['AnnotationsBundle']);
$extension = new DoctrineExtension();

Expand Down

0 comments on commit 78d3558

Please sign in to comment.