Skip to content

Migrate NodeTestCase to static data providers#4265

Merged
fabpot merged 1 commit into
twigphp:3.xfrom
derrabus:improvement/node-test-case-static-data-provider
Sep 3, 2024
Merged

Migrate NodeTestCase to static data providers#4265
fabpot merged 1 commit into
twigphp:3.xfrom
derrabus:improvement/node-test-case-static-data-provider

Conversation

@derrabus

@derrabus derrabus commented Sep 2, 2024

Copy link
Copy Markdown
Contributor

PHPUnit 11 requires data providers to be static. This PR prepares our abstract NodeTestCase by deprecating the non-static getTests() and adding a static provideTests() as a replacement. I've also added PHPUnit attributes which newer PHPUnit releases prefer over PHPDoc annotations.

Comment thread src/Test/NodeTestCase.php Outdated
Comment thread src/Test/NodeTestCase.php Outdated
Comment thread src/Test/NodeTestCase.php
@derrabus derrabus force-pushed the improvement/node-test-case-static-data-provider branch 2 times, most recently from bc0333f to 741002d Compare September 3, 2024 10:23

@fabpot fabpot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment thread CHANGELOG
Comment thread src/Test/NodeTestCase.php Outdated
@derrabus derrabus force-pushed the improvement/node-test-case-static-data-provider branch from 741002d to d7cfa76 Compare September 3, 2024 11:50
@derrabus derrabus force-pushed the improvement/node-test-case-static-data-provider branch from d7cfa76 to f555a33 Compare September 3, 2024 11:51
@fabpot

fabpot commented Sep 3, 2024

Copy link
Copy Markdown
Contributor

Thank you @derrabus.

@fabpot fabpot merged commit dd9af8e into twigphp:3.x Sep 3, 2024
@derrabus derrabus deleted the improvement/node-test-case-static-data-provider branch September 3, 2024 12:38
@derrabus derrabus mentioned this pull request Sep 3, 2024
10 tasks
fabpot added a commit that referenced this pull request Sep 4, 2024
This PR was squashed before being merged into the 4.x branch.

Discussion
----------

PHPUnit 11

This PR switches our CI to PHPUnit 11.

TODO:

- [x] #4262
- [x] #4263
- [x] #4264
- [x] #4265
- [x] #4268
- [x] #4266
- [x] #4270
- [x] #4271
- [x] #4272
- [x] #4274

Commits
-------

f2053bb PHPUnit 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants