Open
Description
Hey 👋
I use the Examples
annotation to provide test data to my test case. I want to use null
as values.
#[Examples('BILL', null, null, null, null)]
public function canMapValidMessages(FunctionalTester $I, Example $example): void
{
$data = [
'key1' => $example[0],
'key2' => $example[1],
'key3' => $example[2],
'key4' => $example[3],
];
// custom logic
$I->assertNull($data['key2']);
}
Unfortunately Codeception fails with
Codeception\Util\Annotation::arrayValue(): Argument #1 ($annotation) must be of type string, null given, called in /var/www/html/vendor/codeception/codeception/src/Codeception/Test/Data/Provider.php on line 35
- Codeception version: 5.0.13
- PHP Version: 8.3
- Operating System: Alpine
Metadata
Metadata
Assignees
Labels
No labels