Skip to content

Commit 2dfd2c3

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: ensure compatibility with type resolver 0.5 Call AssertEquals with proper parameters [Twig] Fix Twig config extra keys fix tests depending on other components' tests
2 parents 898659a + ec2a74a commit 2dfd2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/JsonResponseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testConstructorWithSimpleTypes()
4343
$this->assertSame('0', $response->getContent());
4444

4545
$response = new JsonResponse(0.1);
46-
$this->assertEquals('0.1', $response->getContent());
46+
$this->assertEquals(0.1, $response->getContent());
4747
$this->assertIsString($response->getContent());
4848

4949
$response = new JsonResponse(true);
@@ -132,7 +132,7 @@ public function testStaticCreateWithSimpleTypes()
132132

133133
$response = JsonResponse::create(0.1);
134134
$this->assertInstanceOf('Symfony\Component\HttpFoundation\JsonResponse', $response);
135-
$this->assertEquals('0.1', $response->getContent());
135+
$this->assertEquals(0.1, $response->getContent());
136136
$this->assertIsString($response->getContent());
137137

138138
$response = JsonResponse::create(true);

0 commit comments

Comments
 (0)