Skip to content

Improved compatibility with PHPUnit 7+ #5894

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

Closed
wants to merge 3 commits into from
Closed

Improved compatibility with PHPUnit 7+ #5894

wants to merge 3 commits into from

Conversation

Naktibalda
Copy link
Member

  • Doesn't fail when used in combination with zend-test and some other testing libraries
  • Keeps compatibility with PHPUnit 5 and 6
  • Differences of PHPUnit's Test and SelfDescribing interfaces are hidden by phpunit-wrapper library
  • shim.php is loaded by composer, so it is easier to use Codeception as a library

Fixes #5031
Fixes #5886

Because this method is public in other traits
TODO: Revert this change when support for PHPUnit 6 is dropped
@@ -1,6 +1,7 @@
<?php
namespace Codeception\Test;

use Codeception\PHPUnit\Test As TestAbstract;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP keywords must be lowercase; expected as but found As

@samdark
Copy link
Member

samdark commented Dec 16, 2020

@Naktibalda worth merging master into this one and checking test results.

@Naktibalda
Copy link
Member Author

Naktibalda commented Dec 16, 2020

@samdark I think that this change has circular dependency with Codeception/phpunit-wrapper#77
so the tests wont pass until one of merge requests is merged and released.

I'm not sure if these changes are worth fixing, the issue affects very few users, but there is quite a lot of work to update all phpunit-wrapper branches and adding 10 to major version number makes a mess of versioning.

@Naktibalda Naktibalda mentioned this pull request Dec 28, 2020
20 tasks
@Naktibalda
Copy link
Member Author

This change was made obsolete by work on Codeception 5.0

@Naktibalda Naktibalda closed this Dec 28, 2020
@Naktibalda Naktibalda deleted the abstract-test branch January 26, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants