You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A test with this annotation could previously be executed by running phpunit --group 21117.
This no longer works in PHPUnit 7.2+ due to a strict in_array() check introduced in 39294df.
phpunit list-groups does include 21117, however running phpunit --group 21117 results in a No tests executed! message.
The documentation for @group has an example of @group bug2204, but it does not say that group cannot be numeric, so I'm assuming a numeric group is still valid.
Looking at GroupFilterIterator::__construct(), $group is an integer there, however $groups is an array of strings, so in_array($group, $groups, true) returns false.
Could we either cast $group to a string or remove the strict check?
The text was updated successfully, but these errors were encountered:
In WordPress project, a lot of tests include a
@ticket
annotation with a numeric ticket ID, for example:A test with this annotation could previously be executed by running
phpunit --group 21117
.This no longer works in PHPUnit 7.2+ due to a strict
in_array()
check introduced in 39294df.phpunit list-groups
does include21117
, however runningphpunit --group 21117
results in aNo tests executed!
message.The documentation for
@group
has an example of@group bug2204
, but it does not say that group cannot be numeric, so I'm assuming a numeric group is still valid.Looking at
GroupFilterIterator::__construct()
,$group
is an integer there, however$groups
is an array of strings, soin_array($group, $groups, true)
returns false.Could we either cast
$group
to a string or remove the strict check?The text was updated successfully, but these errors were encountered: