@@ -64,21 +64,51 @@ public function exampleProvider(): array
64
64
self ::BASE_NAMESPACE . SchemaMapperGenerator::NAMESPACE_SUBPATH . '\\FreeFormItemMapper ' ,
65
65
ConfigurationBuilder::fake ()->withPhpVersion (PhpVersion::VERSION_PHP80 )->build (),
66
66
],
67
- 'OneOf response ' => [
67
+ 'OneOf response with php 7.4 ' => [
68
68
'/SchemaMapper/oneOf.yaml ' ,
69
- '/SchemaMapper/OneOfResponseBodyMapper.php ' ,
69
+ '/SchemaMapper/OneOfResponseBodyMapper74.php ' ,
70
+ self ::BASE_NAMESPACE . SchemaMapperGenerator::NAMESPACE_SUBPATH . '\\GetExampleResponseBodyMapper ' ,
71
+ ConfigurationBuilder::fake ()->withPhpVersion (PhpVersion::VERSION_PHP74 )->build (),
72
+ ],
73
+ 'OneOf response with php 8.0 ' => [
74
+ '/SchemaMapper/oneOf.yaml ' ,
75
+ '/SchemaMapper/OneOfResponseBodyMapper80.php ' ,
70
76
self ::BASE_NAMESPACE . SchemaMapperGenerator::NAMESPACE_SUBPATH . '\\GetExampleResponseBodyMapper ' ,
71
77
ConfigurationBuilder::fake ()->withPhpVersion (PhpVersion::VERSION_PHP80 )->build (),
72
78
],
73
- 'OneOf response without discriminator ' => [
79
+ 'OneOf response without discriminator with php 7.4 ' => [
74
80
'/SchemaMapper/oneOfWithoutDiscriminator.yaml ' ,
75
- '/SchemaMapper/OneOfResponseBodyMapperWithoutDiscriminator.php ' ,
81
+ '/SchemaMapper/OneOfResponseBodyMapperWithoutDiscriminator74.php ' ,
82
+ self ::BASE_NAMESPACE . SchemaMapperGenerator::NAMESPACE_SUBPATH . '\\GetExampleResponseBodyMapper ' ,
83
+ ConfigurationBuilder::fake ()->withPhpVersion (PhpVersion::VERSION_PHP74 )->build (),
84
+ ],
85
+ 'OneOf response without discriminator with php 8.0 ' => [
86
+ '/SchemaMapper/oneOfWithoutDiscriminator.yaml ' ,
87
+ '/SchemaMapper/OneOfResponseBodyMapperWithoutDiscriminator80.php ' ,
76
88
self ::BASE_NAMESPACE . SchemaMapperGenerator::NAMESPACE_SUBPATH . '\\GetExampleResponseBodyMapper ' ,
77
89
ConfigurationBuilder::fake ()->withPhpVersion (PhpVersion::VERSION_PHP80 )->build (),
78
90
],
79
- 'AnyOf response ' => [
91
+ 'AnyOf response with php 7.4 ' => [
92
+ '/SchemaMapper/anyOf.yaml ' ,
93
+ '/SchemaMapper/AnyOfResponseBodyMapper74.php ' ,
94
+ self ::BASE_NAMESPACE . SchemaMapperGenerator::NAMESPACE_SUBPATH . '\\GetExampleResponseBodyMapper ' ,
95
+ ConfigurationBuilder::fake ()->withPhpVersion (PhpVersion::VERSION_PHP74 )->build (),
96
+ ],
97
+ 'AnyOf response with php 8.0 ' => [
80
98
'/SchemaMapper/anyOf.yaml ' ,
81
- '/SchemaMapper/AnyOfResponseBodyMapper.php ' ,
99
+ '/SchemaMapper/AnyOfResponseBodyMapper80.php ' ,
100
+ self ::BASE_NAMESPACE . SchemaMapperGenerator::NAMESPACE_SUBPATH . '\\GetExampleResponseBodyMapper ' ,
101
+ ConfigurationBuilder::fake ()->withPhpVersion (PhpVersion::VERSION_PHP80 )->build (),
102
+ ],
103
+ 'AnyOf response with php 7.4 ' => [
104
+ '/SchemaMapper/anyOfWithoutDiscriminator.yaml ' ,
105
+ '/SchemaMapper/AnyOfResponseBodyMapperWithoutDiscriminator74.php ' ,
106
+ self ::BASE_NAMESPACE . SchemaMapperGenerator::NAMESPACE_SUBPATH . '\\GetExampleResponseBodyMapper ' ,
107
+ ConfigurationBuilder::fake ()->withPhpVersion (PhpVersion::VERSION_PHP74 )->build (),
108
+ ],
109
+ 'AnyOf response with php 8.0 ' => [
110
+ '/SchemaMapper/anyOfWithoutDiscriminator.yaml ' ,
111
+ '/SchemaMapper/AnyOfResponseBodyMapperWithoutDiscriminator80.php ' ,
82
112
self ::BASE_NAMESPACE . SchemaMapperGenerator::NAMESPACE_SUBPATH . '\\GetExampleResponseBodyMapper ' ,
83
113
ConfigurationBuilder::fake ()->withPhpVersion (PhpVersion::VERSION_PHP80 )->build (),
84
114
],
0 commit comments