@@ -24,9 +24,7 @@ public function testGetWithQuery(): void
24
24
self ::assertSame ($ query , $ params ->query );
25
25
}
26
26
27
- /**
28
- * @dataProvider jsonLikeContentTypes
29
- */
27
+ /** @dataProvider jsonLikeContentTypes */
30
28
public function testPostWithJsonLike (string $ contentType ): void
31
29
{
32
30
$ query = /** @lang GraphQL */ '{ foo } ' ;
@@ -43,19 +41,15 @@ public function testPostWithJsonLike(string $contentType): void
43
41
self ::assertSame ($ query , $ params ->query );
44
42
}
45
43
46
- /**
47
- * @return iterable<array{string}>
48
- */
44
+ /** @return iterable<array{string}> */
49
45
public static function jsonLikeContentTypes (): iterable
50
46
{
51
47
yield ['application/json ' ];
52
48
yield ['application/graphql+json ' ];
53
49
yield ['application/json;charset=UTF-8 ' ];
54
50
}
55
51
56
- /**
57
- * @dataProvider graphQLContentTypes
58
- */
52
+ /** @dataProvider graphQLContentTypes */
59
53
public function testPostWithQueryApplicationGraphQL (string $ contentType ): void
60
54
{
61
55
$ query = /** @lang GraphQL */ '{ foo } ' ;
@@ -72,18 +66,14 @@ public function testPostWithQueryApplicationGraphQL(string $contentType): void
72
66
self ::assertSame ($ query , $ params ->query );
73
67
}
74
68
75
- /**
76
- * @return iterable<array{string}>
77
- */
69
+ /** @return iterable<array{string}> */
78
70
public static function graphQLContentTypes (): iterable
79
71
{
80
72
yield ['application/graphql ' ];
81
73
yield ['application/graphql;charset=UTF-8 ' ];
82
74
}
83
75
84
- /**
85
- * @dataProvider formContentTypes
86
- */
76
+ /** @dataProvider formContentTypes */
87
77
public function testPostWithRegularForm (string $ contentType ): void
88
78
{
89
79
$ query = /** @lang GraphQL */ '{ foo } ' ;
@@ -100,9 +90,7 @@ public function testPostWithRegularForm(string $contentType): void
100
90
self ::assertSame ($ query , $ params ->query );
101
91
}
102
92
103
- /**
104
- * @return iterable<array{string}>
105
- */
93
+ /** @return iterable<array{string}> */
106
94
public static function formContentTypes (): iterable
107
95
{
108
96
yield ['application/x-www-form-urlencoded ' ];
@@ -145,9 +133,7 @@ public function testPostDefaultsToRegularForm(): void
145
133
self ::assertSame ($ query , $ params ->query );
146
134
}
147
135
148
- /**
149
- * @dataProvider nonsensicalContentTypes
150
- */
136
+ /** @dataProvider nonsensicalContentTypes */
151
137
public function testNonsensicalContentTypes (string $ contentType ): void
152
138
{
153
139
$ request = $ this ->makeRequest (
@@ -163,9 +149,7 @@ public function testNonsensicalContentTypes(string $contentType): void
163
149
$ parser ->parseRequest ($ request );
164
150
}
165
151
166
- /**
167
- * @return iterable<array{string}>
168
- */
152
+ /** @return iterable<array{string}> */
169
153
public static function nonsensicalContentTypes (): iterable
170
154
{
171
155
yield ['foobar ' ];
@@ -217,9 +201,7 @@ public function testNonArrayJson(): void
217
201
$ parser ->parseRequest ($ request );
218
202
}
219
203
220
- /**
221
- * @dataProvider multipartFormContentTypes
222
- */
204
+ /** @dataProvider multipartFormContentTypes */
223
205
public function testMultipartFormRequest (string $ contentType ): void
224
206
{
225
207
$ file = UploadedFile::fake ()->create ('image.jpg ' , 500 );
@@ -260,9 +242,7 @@ public function testMultipartFormRequest(string $contentType): void
260
242
self ::assertSame ($ file , $ variables ['file ' ]);
261
243
}
262
244
263
- /**
264
- * @return iterable<array{string}>
265
- */
245
+ /** @return iterable<array{string}> */
266
246
public static function multipartFormContentTypes (): iterable
267
247
{
268
248
yield ['multipart/form-data ' ];
0 commit comments