File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ private function request()
191191 return ;
192192 }
193193
194- // match `Content-Type: text/event-stream` (case insensitve and ignore additional parameters)
194+ // match `Content-Type: text/event-stream` (case insensitive and ignore additional parameters)
195195 if (!preg_match ('/^text\/event-stream(?:$|;)/i ' , $ response ->getHeaderLine ('Content-Type ' ))) {
196196 $ this ->readyState = self ::CLOSED ;
197197 $ this ->emit ('error ' , array (new \UnexpectedValueException ('Unexpected Content-Type ' )));
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ public function testParseDataOverTwoLinesWillBeCombined()
2121 $ this ->assertEquals ("hello \nworld " , $ message ->data );
2222 }
2323
24- public function testParseDataOverTwoLinesWithCarrigeReturnsWillBeCombinedWithNewline ()
24+ public function testParseDataOverTwoLinesWithCarriageReturnsWillBeCombinedWithNewline ()
2525 {
2626 $ message = MessageEvent::parse ("data: hello \rdata: world " , '' );
2727
2828 $ this ->assertEquals ("hello \nworld " , $ message ->data );
2929 }
3030
31- public function testParseDataOverTwoLinesWithCarrigeReturnsAndNewlinesWillBeCombinedWithNewline ()
31+ public function testParseDataOverTwoLinesWithCarriageReturnsAndNewlinesWillBeCombinedWithNewline ()
3232 {
3333 $ message = MessageEvent::parse ("data: hello \r\ndata: world " , '' );
3434
@@ -42,14 +42,14 @@ public function testParseDataWithTrailingNewlineOverTwoLines()
4242 $ this ->assertEquals ("hello \n" , $ message ->data );
4343 }
4444
45- public function testParseDataWithCarrigeReturnOverTwoLines ()
45+ public function testParseDataWithCarriageReturnOverTwoLines ()
4646 {
4747 $ message = MessageEvent::parse ("data: hello \rdata: " , '' );
4848
4949 $ this ->assertEquals ("hello \n" , $ message ->data );
5050 }
5151
52- public function testParseDataWithCarrigeReturnAndNewlineOverTwoLines ()
52+ public function testParseDataWithCarriageReturnAndNewlineOverTwoLines ()
5353 {
5454 $ message = MessageEvent::parse ("data: hello \r\ndata: " , '' );
5555
You can’t perform that action at this time.
0 commit comments