Skip to content

Commit ca69dbb

Browse files
committed
minor symfony#11362 [2.3][HttpFoundation] Fix wrong assertion in Response test (stloyd)
This PR was merged into the 2.3 branch. Discussion ---------- [2.3][HttpFoundation] Fix wrong assertion in Response test | Q | A | ------------- | --- | Bug fix? | kinda | New feature? | no | BC breaks? | no | Tests pass? | yes | License | MIT Commits ------- 3d63f80 [HttpFoundation] Fix wrong assertion in Response test
2 parents 819bb29 + 3d63f80 commit ca69dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public function testPrepareRemovesContentForHeadRequests()
374374
$response->prepare($request);
375375

376376
$this->assertEquals('', $response->getContent());
377-
$this->assertFalse($response->headers->has('Content-Type'));
377+
$this->assertTrue($response->headers->has('Content-Type'));
378378
$this->assertFalse($response->headers->has('Content-Length'));
379379
}
380380

0 commit comments

Comments
 (0)