Skip to content

TASK: Drop overridden constructors for TestCase again - #3638

Merged
dlubitz merged 1 commit into
neos:8.4from
gerhard-boden:task/drop-overridden-testcase-constructors
Oct 16, 2026
Merged

dlubitz merged 1 commit into
neos:8.4from
gerhard-boden:task/drop-overridden-testcase-constructors

Conversation

@gerhard-boden

Copy link
Copy Markdown
Contributor

They were removed in 26b8b11, but a later Rector run re-added them (ParentTestClassConstructorRector from PHPUnitSetList::PHPUNIT_100 targets TestCase subclasses without a Test suffix).

TestCase::__construct() is final since PHPUnit 12.1, so loading PersistenceTestPHP8 breaks the functional test bootstrap with "Cannot override final method". The override also replaced the test method name with the class name.

They were removed in 26b8b11, but a later Rector run re-added them
(`ParentTestClassConstructorRector` from `PHPUnitSetList::PHPUNIT_100`
targets `TestCase` subclasses without a `Test` suffix).

`TestCase::__construct()` is final since PHPUnit 12.1, so loading
`PersistenceTestPHP8` breaks the functional test bootstrap with
"Cannot override final method". The override also replaced the test
method name with the class name.
@gerhard-boden

Copy link
Copy Markdown
Contributor Author

Worked back in May, may work again :) @kdambekalns

@dlubitz dlubitz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good by reading.

@gerhard-boden

Copy link
Copy Markdown
Contributor Author

Thanks for the fast reviews guys 🥇

@dlubitz
dlubitz merged commit a551ed9 into neos:8.4 Oct 16, 2026
34 checks passed
@gerhard-boden
gerhard-boden deleted the task/drop-overridden-testcase-constructors branch October 19, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants