Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d5094eb

Browse filesBrowse files
committed
fix syntax for PHP 7.2
1 parent 32e57aa commit d5094eb
Copy full SHA for d5094eb

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎src/Symfony/Component/HttpClient/Tests/EventSourceHttpClientTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Tests/EventSourceHttpClientTest.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class EventSourceHttpClientTest extends TestCase
3434
*/
3535
public function testGetServerSentEvents(string $sep)
3636
{
37-
$data = str_replace("\n", $sep, <<<TXT
37+
$rawData = <<<TXT
3838
event: builderror
3939
id: 46
4040
data: {"foo": "bar"}
@@ -62,7 +62,8 @@ public function testGetServerSentEvents(string $sep)
6262
6363
id: 60
6464
data
65-
TXT);
65+
TXT;
66+
$data = str_replace("\n", $sep, $rawData);
6667

6768
$chunk = new DataChunk(0, $data);
6869
$response = new MockResponse('', ['canceled' => false, 'http_method' => 'GET', 'url' => 'http://localhost:8080/events', 'response_headers' => ['content-type: text/event-stream']]);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.