Skip to content

Commit

Permalink
Add tests for array of DateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Aug 12, 2019
1 parent 519cabd commit 72f15d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Serializer/Type/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public function validTypesProvider(): iterable
'array<Foo\Bar, Baz\Boo>',
$type('array', [['name' => 'Foo\Bar', 'params' => []], ['name' => 'Baz\Boo', 'params' => []]]),
];
yield [
'DateTime<null, null, array<\'Y-m-d\TH:i:s\', \'Y-m-d\TH:i:sP\'>>',
$type('DateTime', [null, null, ['name' => 'array', 'params' => ['Y-m-d\TH:i:s', 'Y-m-d\TH:i:sP']]]),
];
yield [
'a<b<c,d>,e>',
$type('a', [['name' => 'b', 'params' => [['name' => 'c', 'params' => []], ['name' => 'd', 'params' => []]]], ['name' => 'e', 'params' => []]]),
Expand Down

0 comments on commit 72f15d1

Please sign in to comment.