Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc6550e

Browse files
minor #39526 [Notifier] Use assertSame() (OskarStark)
This PR was squashed before being merged into the 5.1 branch. Discussion ---------- [Notifier] Use assertSame() | Q | A | ------------- | --- | Branch? | 5.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | --- | License | MIT | Doc PR | --- Commits ------- 4a1976b [Notifier] Use assertSame()
2 parents 40672e1 + 4a1976b commit bc6550e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function testSendWithOptions()
8989
];
9090

9191
$client = new MockHttpClient(function (string $method, string $url, array $options = []) use ($response, $expectedBody): ResponseInterface {
92-
$this->assertEquals($expectedBody, json_decode($options['body'], true));
92+
$this->assertSame($expectedBody, json_decode($options['body'], true));
9393

9494
return $response;
9595
});
@@ -118,7 +118,7 @@ public function testSendWithChannelOverride()
118118
];
119119

120120
$client = new MockHttpClient(function (string $method, string $url, array $options = []) use ($response, $expectedBody): ResponseInterface {
121-
$this->assertEquals($expectedBody, json_decode($options['body'], true));
121+
$this->assertSame($expectedBody, json_decode($options['body'], true));
122122

123123
return $response;
124124
});

0 commit comments

Comments
 (0)