66use PHPUnit \Framework \TestCase ;
77use React \Promise \Promise ;
88use React \Promise \Deferred ;
9- use React \Http \Browser ;
109use React \Http \Io \ReadableBodyStream ;
1110use React \Stream \ThroughStream ;
11+ use ReflectionProperty ;
1212use RingCentral \Psr7 \Response ;
1313
1414class 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