File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function it_should_send_requests()
2727
2828 $ this ->beConstructedWith ($ psr17Factory , $ psr17Factory );
2929
30- $ request = $ psr17Factory ->createRequest ('GET ' , $ url );
30+ $ request = $ psr17Factory ->createRequest ('GET ' , $ url. ' / ' );
3131 $ response = $ this ->sendRequest ($ request );
3232 $ response ->getStatusCode ()->shouldReturn (200 );
3333
@@ -37,7 +37,7 @@ public function it_should_send_requests()
3737 $ request = $ psr17Factory ->createRequest ('GET ' , $ url .'/get/404 ' );
3838 $ this ->shouldThrow (Exceptions \ClientError::class)->duringSendRequest ($ request );
3939
40- $ request = $ psr17Factory ->createRequest ('GET ' , 'http://localhost:3001 ' );
40+ $ request = $ psr17Factory ->createRequest ('GET ' , 'http://localhost:3001/ ' );
4141 $ this ->shouldThrow (Exceptions \TransportError::class)->duringSendRequest ($ request );
4242
4343 $ request = $ psr17Factory ->createRequest ('HEAD ' , $ url );
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ protected function buildOptions(RequestInterface $request): array
112112 };
113113 }
114114
115- return array_merge ( $ options , $ this ->options ) ;
115+ return $ this ->options + $ options ;
116116 }
117117
118118 protected function parseHeaders (ResponseInterface $ response , StreamInterface $ headers ): ResponseInterface
You can’t perform that action at this time.
0 commit comments