diff --git a/phpunit.php b/phpunit.php index 560f07c..fad260c 100644 --- a/phpunit.php +++ b/phpunit.php @@ -1,9 +1,5 @@ assertEquals(1, Allure::lifecycle()->getTestSuiteStorage()->size()); $outputDirectory = sys_get_temp_dir(); - AnnotationRegistry::registerAutoloadNamespace( - 'JMS\Serializer\Annotation', - __DIR__ . "/../../../../vendor/jms/serializer/src" - ); Provider::setOutputDirectory($outputDirectory); $xmlFilePath = $outputDirectory . DIRECTORY_SEPARATOR . self::TEST_SUITE_UUID . '-testsuite.xml'; diff --git a/test/Yandex/Allure/Adapter/Annotation/AnnotationProviderTest.php b/test/Yandex/Allure/Adapter/Annotation/AnnotationProviderTest.php index 3fefb6a..1223dee 100644 --- a/test/Yandex/Allure/Adapter/Annotation/AnnotationProviderTest.php +++ b/test/Yandex/Allure/Adapter/Annotation/AnnotationProviderTest.php @@ -3,7 +3,6 @@ namespace Yandex\Allure\Adapter\Annotation; use Doctrine\Common\Annotations\AnnotationException; -use Doctrine\Common\Annotations\AnnotationRegistry; use PHPUnit\Framework\TestCase; class AnnotationProviderTest extends TestCase @@ -12,11 +11,6 @@ class AnnotationProviderTest extends TestCase private const TYPE_METHOD = 'method'; private const METHOD_NAME = 'methodWithAnnotations'; - public static function setUpBeforeClass(): void - { - AnnotationRegistry::registerFile(__DIR__ . '/Fixtures/TestAnnotation.php'); - } - protected function tearDown(): void { AnnotationProvider::tearDown(); diff --git a/test/Yandex/Allure/Adapter/XMLValidationTest.php b/test/Yandex/Allure/Adapter/XMLValidationTest.php index 5d3afde..439d9cd 100644 --- a/test/Yandex/Allure/Adapter/XMLValidationTest.php +++ b/test/Yandex/Allure/Adapter/XMLValidationTest.php @@ -2,7 +2,6 @@ namespace Yandex\Allure\Adapter; -use Doctrine\Common\Annotations\AnnotationRegistry; use DOMDocument; use PHPUnit\Framework\TestCase; use SebastianBergmann\Exporter\Exception; @@ -63,10 +62,6 @@ private function prepareDirForXML() private function generateXML($tmpDir) { - AnnotationRegistry::registerAutoloadNamespace( - 'JMS\Serializer\Annotation', - __DIR__ . "/../../../../vendor/jms/serializer/src" - ); Model\Provider::setOutputDirectory($tmpDir); Allure::setDefaultLifecycle(); $testSuiteStartedEvent = new TestSuiteStartedEvent(TEST_SUITE_NAME);