Skip to content

Conversation

@Chris53897
Copy link

add static data generators
fix deprecated file-structure for abstract test classes

@codecov
Copy link

codecov bot commented May 14, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.56%. Comparing base (d2eb7ec) to head (dd0d274).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #842   +/-   ##
=========================================
  Coverage     98.56%   98.56%           
  Complexity      389      389           
=========================================
  Files            24       24           
  Lines           909      909           
=========================================
  Hits            896      896           
  Misses           13       13           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

use PHPUnit\Framework\TestCase;

abstract class NamedSelectorTest extends TestCase
abstract class AbstractNamedSelector extends TestCase
Copy link
Member

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?

Copy link
Author

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)

Copy link
Author

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

Copy link
Member

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

Copy link
Author

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.

Copy link
Member

@aik099 aik099 left a 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?

@stof
Copy link
Member

stof commented Jun 22, 2023

@aik099 PHPUnit 10 does not allow have abstract classes ending with Test (older versions of PHPUnit were silently considering that those were not actually tests that should be loaded in the testsuite)

@Chris53897 Chris53897 force-pushed the feature/prepare-for-phpunit-10 branch from 32c5948 to 842928e Compare June 23, 2023 18:28
@Chris53897
Copy link
Author

I changed the Filenames. I hope everything is correct now

@stof stof force-pushed the feature/prepare-for-phpunit-10 branch from d0939bb to dd0d274 Compare November 22, 2025 10:35
@stof stof merged commit 7d86380 into minkphp:master Nov 22, 2025
15 checks passed
@Chris53897 Chris53897 deleted the feature/prepare-for-phpunit-10 branch November 22, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants