-
Notifications
You must be signed in to change notification settings - Fork 280
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
tests: prepare for phpunit 10 #842
base: master
Are you sure you want to change the base?
tests: prepare for phpunit 10 #842
Conversation
Codecov Report
@@ Coverage Diff @@
## master #842 +/- ##
=========================================
Coverage 98.72% 98.72%
Complexity 374 374
=========================================
Files 24 24
Lines 1022 1022
=========================================
Hits 1009 1009
Misses 13 13 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -6,7 +6,7 @@ | |||
use Behat\Mink\Selector\Xpath\Escaper; | |||
use PHPUnit\Framework\TestCase; | |||
|
|||
abstract class NamedSelectorTest extends TestCase | |||
abstract class AbstractNamedSelector extends TestCase |
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.
What was the purpose of this class renaming?
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.
PHPUnit 10 will raise a warning, if there are classes with the Suffix Test
and no tests or abstract Classes. sebastianbergmann/phpunit#4979 (comment)
sebastianbergmann/phpunit#4979 (comment)
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.
The CI Tests failed because of this
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.
I would actually use TestCase
as suffix here
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.
ok, I removed the prefix and added your suggested suffix.
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.
@Chris53897 , what is the general purpose of renaming *Test
classes into *TestCase
classes?
@aik099 PHPUnit 10 does not allow have abstract classes ending with |
add static data generators fix deprecated file-structure for abstract test classes
add static data generators fix deprecated file-structure for abstract test classes
add static data generators fix deprecated file-structure for abstract test classes
32c5948
to
842928e
Compare
I changed the Filenames. I hope everything is correct now |
add static data generators
fix deprecated file-structure for abstract test classes