You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If any project will require two allure-framework packages (in our case allure-phpunit and allure-codeception) we will have two classes which have identical full class name: Yandex\Allure\Adapter\AllureAdapter.
It will cause an issue for autoloader to load appropriate adaptor for codeception and phpunit.
Suggestion
Make namespace unique.
For example: Yandex\Allure\Codeception\Adapter\AllureAdapter Yandex\Allure\PHPUnit\Adapter\AllureAdapter
Problem
If any project will require two allure-framework packages (in our case allure-phpunit and allure-codeception) we will have two classes which have identical full class name:
Yandex\Allure\Adapter\AllureAdapter
.It will cause an issue for autoloader to load appropriate adaptor for codeception and phpunit.
Suggestion
Make namespace unique.
For example:
Yandex\Allure\Codeception\Adapter\AllureAdapter
Yandex\Allure\PHPUnit\Adapter\AllureAdapter
Or class name unique
Yandex\Allure\Adapter\CodeceptionAllureAdapter
Yandex\Allure\Adapter\PHPUnitAllureAdapter
Related Issue
allure-framework/allure-codeception#44
The text was updated successfully, but these errors were encountered: