Skip to content

Fix data providers in ProfileValidatorTest#1153

Merged
outdooracorn merged 1 commit into
mainfrom
fix-data-providers
Jun 3, 2026
Merged

Fix data providers in ProfileValidatorTest#1153
outdooracorn merged 1 commit into
mainfrom
fix-data-providers

Conversation

@outdooracorn
Copy link
Copy Markdown
Member

@outdooracorn outdooracorn commented Jun 3, 2026

The data providers in ProfileValidatorTest where returning an improperly constructed array causing the data set name to b treated as a named parameter (which obviously didn't exist). This was tolerated but deprecated in PHPUnit 10.x. It will not be supported in PHPUnit 11.x.

Return generator from data providers for less array nesting and easier reading.

Bug: T428034

@outdooracorn outdooracorn requested a review from dati18 June 3, 2026 10:21
@outdooracorn outdooracorn self-assigned this Jun 3, 2026
Comment thread tests/Helper/ProfileValidatorTest.php
The data providers in `ProfileValidatorTest` where returning an improperly constructed array causing the data set name to b treated as a named parameter (which oviously didn't exist). This was tolerated but deprecated in PHPUnit 10.x. It will not be supported in PHPUnit 11.x.

Return `iterable`s from data providers for less array nesting and easier reading.

Bug: T428034
@outdooracorn outdooracorn merged commit e7971ea into main Jun 3, 2026
4 checks passed
@outdooracorn outdooracorn deleted the fix-data-providers branch June 3, 2026 11:48
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