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
When I use a dataset with Enum, Pest interprets it as if no dataset has been provided.
ERROR A test with the description 'pest datasets break with Enum → it should work with enums' has 1 argument(s) ([PhpVersion $phpVersion]) and no dataset(s) provided in MyTest.php
How to Reproduce
describe('pest datasets break with Enum', function () {
it('should work with enums', function (PhpVersion $phpVersion) {
expect($phpVersion)->toBe(PhpVersion::PHP_80);
})->with([
PhpVersion::PHP_80,
PhpVersion::PHP_81,
PhpVersion::PHP_82,
PhpVersion::PHP_83,
PhpVersion::PHP_84,
]);
});
enum PhpVersion: string
{
case PHP_80 = '8.0';
case PHP_81 = '8.1';
case PHP_82 = '8.2';
case PHP_83 = '8.3';
case PHP_84 = '8.4';
}
Sample Repository
No response
Pest Version
2.35.1
PHP Version
8.3.12
Operation System
macOS
Notes
No response
The text was updated successfully, but these errors were encountered:
What Happened
When I use a dataset with Enum, Pest interprets it as if no dataset has been provided.
How to Reproduce
Sample Repository
No response
Pest Version
2.35.1
PHP Version
8.3.12
Operation System
macOS
Notes
No response
The text was updated successfully, but these errors were encountered: