11<?php
22
3+ namespace Clue \Tests \React \Buzz \Io ;
4+
35use Clue \React \Block ;
46use Clue \React \Buzz \Io \Transaction ;
57use Clue \React \Buzz \Message \MessageFactory ;
68use Clue \React \Buzz \Message \ResponseException ;
79use PHPUnit \Framework \MockObject \MockObject ;
10+ use PHPUnit \Framework \TestCase ;
811use Psr \Http \Message \RequestInterface ;
912use React \EventLoop \Factory ;
1013use React \Promise ;
@@ -25,7 +28,7 @@ public function testWithOptionsReturnsNewInstanceWithChangedOption()
2528 $ this ->assertInstanceOf ('Clue\React\Buzz\Io\Transaction ' , $ new );
2629 $ this ->assertNotSame ($ transaction , $ new );
2730
28- $ ref = new ReflectionProperty ($ new , 'followRedirects ' );
31+ $ ref = new \ ReflectionProperty ($ new , 'followRedirects ' );
2932 $ ref ->setAccessible (true );
3033
3134 $ this ->assertFalse ($ ref ->getValue ($ new ));
@@ -39,7 +42,7 @@ public function testWithOptionsDoesNotChangeOriginalInstance()
3942
4043 $ transaction ->withOptions (array ('followRedirects ' => false ));
4144
42- $ ref = new ReflectionProperty ($ transaction , 'followRedirects ' );
45+ $ ref = new \ ReflectionProperty ($ transaction , 'followRedirects ' );
4346 $ ref ->setAccessible (true );
4447
4548 $ this ->assertTrue ($ ref ->getValue ($ transaction ));
@@ -54,7 +57,7 @@ public function testWithOptionsNullValueReturnsNewInstanceWithDefaultOption()
5457 $ transaction = $ transaction ->withOptions (array ('followRedirects ' => false ));
5558 $ transaction = $ transaction ->withOptions (array ('followRedirects ' => null ));
5659
57- $ ref = new ReflectionProperty ($ transaction , 'followRedirects ' );
60+ $ ref = new \ ReflectionProperty ($ transaction , 'followRedirects ' );
5861 $ ref ->setAccessible (true );
5962
6063 $ this ->assertTrue ($ ref ->getValue ($ transaction ));
0 commit comments