diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 388c0e9..37f15b1 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -11,6 +11,8 @@ require __DIR__ . '/app/TestKernel.php'; -AnnotationRegistry::registerLoader([$loader, 'loadClass']); +if (\class_exists(AnnotationRegistry::class)) { + AnnotationRegistry::registerLoader([$loader, 'loadClass']); +} return $loader;