Skip to content

Commit 809a9ed

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [PsrHttpMessageBridge] Don't skip JSON tests [PsrHttpMessageBridge] Fix test case [Serializer] Make deprecation message more actionable
2 parents 2b6c7a5 + 44f8828 commit 809a9ed

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

Tests/Factory/PsrHttpFactoryTest.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,7 @@ public function testCreateResponseFromBinaryFileWithRange()
211211

212212
public function testUploadErrNoFile()
213213
{
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);
218215

219216
$request = new Request(
220217
[],
@@ -243,10 +240,6 @@ public function testUploadErrNoFile()
243240

244241
public function testJsonContent()
245242
{
246-
if (!method_exists(Request::class, 'getPayload')) {
247-
$this->markTestSkipped();
248-
}
249-
250243
$headers = [
251244
'HTTP_HOST' => 'http_host.fr',
252245
'CONTENT_TYPE' => 'application/json',
@@ -259,10 +252,6 @@ public function testJsonContent()
259252

260253
public function testEmptyJsonContent()
261254
{
262-
if (!method_exists(Request::class, 'getPayload')) {
263-
$this->markTestSkipped();
264-
}
265-
266255
$headers = [
267256
'HTTP_HOST' => 'http_host.fr',
268257
'CONTENT_TYPE' => 'application/json',
@@ -275,10 +264,6 @@ public function testEmptyJsonContent()
275264

276265
public function testWrongJsonContent()
277266
{
278-
if (!method_exists(Request::class, 'getPayload')) {
279-
$this->markTestSkipped();
280-
}
281-
282267
$headers = [
283268
'HTTP_HOST' => 'http_host.fr',
284269
'CONTENT_TYPE' => 'application/json',

0 commit comments

Comments
 (0)