★ wanayoo — archive 1999 https://github.com/allure-framework/allure-codeception/issues/44Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codeception allure adapter conflicting with PHPUnit allure adapter #44

Closed
okolesnyk opened this issue Dec 12, 2018 · 1 comment
Closed

Codeception allure adapter conflicting with PHPUnit allure adapter #44

okolesnyk opened this issue Dec 12, 2018 · 1 comment

Comments

@okolesnyk
Copy link
Contributor

@okolesnyk okolesnyk commented Dec 12, 2018

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 names: 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-phpunit#41

okolesnyk added a commit to okolesnyk/allure-codeception that referenced this issue Dec 12, 2018
 - Codeception allure adapter conflicting with PHPUnit allure adapter
@okorshenko
Copy link

@okorshenko okorshenko commented Dec 17, 2018

Thank you for submitting PR for this issue! 👍

okolesnyk added a commit to okolesnyk/allure-codeception that referenced this issue Dec 18, 2018
 - Codeception allure adapter conflicting with PHPUnit allure adapter
 - Code review changes
@baev baev closed this in 9d31d78 Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.