Skip to content

Commit d9ab9fb

Browse files
committed
feat: custom headers - rebased on master
1 parent 4cbc552 commit d9ab9fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/EventSourceTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use PHPUnit\Framework\TestCase;
77
use React\Promise\Promise;
88
use React\Promise\Deferred;
9-
use React\Http\Browser;
109
use React\Http\Io\ReadableBodyStream;
1110
use React\Stream\ThroughStream;
11+
use ReflectionProperty;
1212
use RingCentral\Psr7\Response;
1313

1414
class EventSourceTest extends TestCase
@@ -53,7 +53,7 @@ public function testConstructorCanBeCalledWithoutBrowser()
5353
$this->assertInstanceOf('React\Http\Browser', $browser);
5454
}
5555

56-
56+
5757
public function testConstructorCanBeCalledWithoutCustomHeaders()
5858
{
5959
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
@@ -67,7 +67,7 @@ public function testConstructorCanBeCalledWithoutCustomHeaders()
6767
$ref = new ReflectionProperty($es, 'defaultHeaders');
6868
$ref->setAccessible(true);
6969
$defaultHeaders = $ref->getValue($es);
70-
70+
7171
$this->assertEquals($defaultHeaders, $headers);
7272
}
7373

@@ -86,8 +86,8 @@ public function testConstructorCanBeCalledWithCustomHeaders()
8686
$ref->setAccessible(true);
8787
$headers = $ref->getValue($es);
8888

89-
// Could have used the defaultHeaders property on EventSource,
90-
// but this ensures the defaults are not altered by hardcoding their values in this test
89+
// Could have used the defaultHeaders property on EventSource,
90+
// but this ensures the defaults are not altered by hardcoding their values in this test
9191
$this->assertEquals(array(
9292
'Accept' => 'text/event-stream',
9393
'Cache-Control' => 'no-cache',

0 commit comments

Comments
 (0)