Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Aug 9, 2024
1 parent 80c9214 commit 351cd68
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Attribute/Parameter/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ public function getValue(string $name): Result
['one', 2, 'three'],
[StringEnum::A, StringEnum::C],
];
yield [
new Collection(StringEnum::class),
[StringEnum::A, StringEnum::C],
[StringEnum::A, StringEnum::C],
];
yield [
new Collection(IntegerEnum::class),
[],
Expand All @@ -234,6 +239,11 @@ public function getValue(string $name): Result
[1, 'two', 3],
[IntegerEnum::A, IntegerEnum::C],
];
yield [
new Collection(IntegerEnum::class),
[IntegerEnum::A, IntegerEnum::C],
[IntegerEnum::A, IntegerEnum::C],
];
}

#[DataProvider('dataBase')]
Expand Down

0 comments on commit 351cd68

Please sign in to comment.