-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support DataProvider attribute in unit tests #6491
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
Conversation
2813c81 to
d7a2c86
Compare
Drops support for @backupGlobals, @backupStaticAttributes, @preserveGlobalState and @testwith annotations
| use function array_merge; | ||
| use function sprintf; | ||
|
|
||
| class DataProvider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating this class is a brilliant idea! 👏
|
Hey @Naktibalda could you give a bit more context why did you replaced and do you have any recommendation which one use?
|
|
@eerison |
Implements support for
#[\Codeception\Attribute\DataProvider],#[\Codeception\Attribute\Examples]and@exampleannotation in unit tests.Drops support for
#[\PHPUnit\Attribute\DataProvider],@backupGlobals,@backupStaticAttributes,@preserveGlobalStateand @testwithannotations.I reused new DataProvider class is Cest Loader.
New possibilities: