Skip to content

Commit 9fbf5f9

Browse files
committed
Merge pull request allure-framework#18 from tyz910/master
class annotation fix
2 parents dab6c9a + d4a0f16 commit 9fbf5f9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Yandex/Allure/Adapter/AllureAdapter.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,14 @@ public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
161161
$event = new TestSuiteStartedEvent($suiteName);
162162
$this->uuid = $event->getUuid();
163163
$this->suiteName = $suiteName;
164-
$annotationManager = new Annotation\AnnotationManager(
165-
Annotation\AnnotationProvider::getClassAnnotations($suite)
166-
);
167-
$annotationManager->updateTestSuiteEvent($event);
164+
165+
if (class_exists($suiteName, false)) {
166+
$annotationManager = new Annotation\AnnotationManager(
167+
Annotation\AnnotationProvider::getClassAnnotations($suiteName)
168+
);
169+
$annotationManager->updateTestSuiteEvent($event);
170+
}
171+
168172
Allure::lifecycle()->fire($event);
169173
}
170174

0 commit comments

Comments
 (0)