@@ -211,10 +211,7 @@ public function testCreateResponseFromBinaryFileWithRange()
211
211
212
212
public function testUploadErrNoFile ()
213
213
{
214
- $ file = new UploadedFile ('' , '' , null , \UPLOAD_ERR_NO_FILE , true );
215
-
216
- $ this ->assertSame (\UPLOAD_ERR_NO_FILE , $ file ->getError ());
217
- $ this ->assertFalse ($ file ->getSize (), 'SplFile::getSize() returns false on error ' );
214
+ $ file = new UploadedFile (__FILE__ , '' , null , \UPLOAD_ERR_NO_FILE , true );
218
215
219
216
$ request = new Request (
220
217
[],
@@ -243,10 +240,6 @@ public function testUploadErrNoFile()
243
240
244
241
public function testJsonContent ()
245
242
{
246
- if (!method_exists (Request::class, 'getPayload ' )) {
247
- $ this ->markTestSkipped ();
248
- }
249
-
250
243
$ headers = [
251
244
'HTTP_HOST ' => 'http_host.fr ' ,
252
245
'CONTENT_TYPE ' => 'application/json ' ,
@@ -259,10 +252,6 @@ public function testJsonContent()
259
252
260
253
public function testEmptyJsonContent ()
261
254
{
262
- if (!method_exists (Request::class, 'getPayload ' )) {
263
- $ this ->markTestSkipped ();
264
- }
265
-
266
255
$ headers = [
267
256
'HTTP_HOST ' => 'http_host.fr ' ,
268
257
'CONTENT_TYPE ' => 'application/json ' ,
@@ -275,10 +264,6 @@ public function testEmptyJsonContent()
275
264
276
265
public function testWrongJsonContent ()
277
266
{
278
- if (!method_exists (Request::class, 'getPayload ' )) {
279
- $ this ->markTestSkipped ();
280
- }
281
-
282
267
$ headers = [
283
268
'HTTP_HOST ' => 'http_host.fr ' ,
284
269
'CONTENT_TYPE ' => 'application/json ' ,
0 commit comments