88use Spatie \LaravelData \Tests \Fakes \Enums \DummyBackedEnum ;
99use Spatie \LaravelData \Tests \Fakes \Error ;
1010use Spatie \LaravelData \Tests \Fakes \SimpleData ;
11+ use Spatie \LaravelData \Tests \Fakes \SimpleDataWithUnicodeCharséÄöü ;
1112
1213it (
1314 'can get the data class for a data collection by annotation ' ,
@@ -42,6 +43,11 @@ function (string $property, ?DataIterableAnnotation $expected) {
4243 new DataIterableAnnotation (SimpleData::class, isData: true ), // expected
4344 ];
4445
46+ yield 'propertyE ' => [
47+ 'propertyE ' , // property
48+ new DataIterableAnnotation (SimpleData::class, isData: true ), // expected
49+ ];
50+
4551 yield 'propertyF ' => [
4652 'propertyF ' , // property
4753 new DataIterableAnnotation (SimpleData::class, isData: true ), // expected
@@ -86,6 +92,11 @@ function (string $property, ?DataIterableAnnotation $expected) {
8692 'propertyU ' , // property
8793 new DataIterableAnnotation (SimpleData::class, isData: true ), // expected
8894 ];
95+
96+ yield 'propertyV ' => [
97+ 'propertyV ' , // property
98+ new DataIterableAnnotation (SimpleDataWithUnicodeCharséÄöü::class, isData: true ), // expected
99+ ];
89100});
90101
91102it ('can get the data class for a data collection by class annotation ' , function () {
@@ -99,6 +110,7 @@ function (string $property, ?DataIterableAnnotation $expected) {
99110 'propertyR ' => new DataIterableAnnotation (SimpleData::class, isData: true , property: 'propertyR ' ),
100111 'propertyS ' => new DataIterableAnnotation (SimpleData::class, isData: true , property: 'propertyS ' ),
101112 'propertyT ' => new DataIterableAnnotation (SimpleData::class, isData: true , property: 'propertyT ' ),
113+ 'propertyW ' => new DataIterableAnnotation (SimpleDataWithUnicodeCharséÄöü::class, isData: true , property: 'propertyW ' ),
102114 ]);
103115});
104116
@@ -117,6 +129,10 @@ function (string $property, ?DataIterableAnnotation $expected) {
117129 'paramJ ' => new DataIterableAnnotation (SimpleData::class, isData: true , keyType: 'int ' , property: 'paramJ ' ),
118130 'paramI ' => new DataIterableAnnotation (SimpleData::class, isData: true , keyType: 'int ' , property: 'paramI ' ),
119131 'paramK ' => new DataIterableAnnotation (SimpleData::class, isData: true , property: 'paramK ' ),
132+ 'paramL ' => new DataIterableAnnotation (SimpleDataWithUnicodeCharséÄöü::class, isData: true , property: 'paramL ' ),
133+ 'paramM ' => new DataIterableAnnotation (SimpleDataWithUnicodeCharséÄöü::class, isData: true , property: 'paramM ' ),
134+ 'paramN ' => new DataIterableAnnotation (SimpleDataWithUnicodeCharséÄöü::class, isData: true , property: 'paramN ' ),
135+ 'paramO ' => new DataIterableAnnotation (SimpleDataWithUnicodeCharséÄöü::class, isData: true , property: 'paramO ' ),
120136 ]);
121137});
122138
0 commit comments