Skip to content
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

[TASK] Migrate to phpunit attributes #879

Merged
merged 1 commit into from
Jun 25, 2024
Merged

[TASK] Migrate to phpunit attributes #879

merged 1 commit into from
Jun 25, 2024

Conversation

s2b
Copy link
Contributor

@s2b s2b commented Jun 25, 2024

phpunit 11 deprecates annotations like @test and @dataProvider in favor of their attribute counterparts.

Based on the migration in TYPO3 core, the following rector workflow has been used:

composer req --dev rector/rector
wget https://forge.typo3.org/attachments/download/38273/rector.php
find tests/ -name *Test.php | xargs vendor/bin/rector process
rm rector.php
composer rem --dev rector/rector

Associated TYPO3 patch: TYPO3/typo3@5043d3c

phpunit 11 deprecates annotations like `@test` and
`@dataProvider` in favor of their attribute counterparts.

Based on the migration in TYPO3 core, the following rector
workflow has been used:

> composer req --dev rector/rector
> wget https://forge.typo3.org/attachments/download/38273/rector.php
> find tests/ -name \*Test.php | xargs vendor/bin/rector process
> rm rector.php
> composer rem --dev rector/rector

Associated TYPO3 patch: TYPO3/typo3@5043d3c
@s2b s2b merged commit 092befb into main Jun 25, 2024
8 checks passed
@s2b s2b deleted the task/phpunitAttributes branch June 25, 2024 13:26
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.

2 participants