@@ -39,12 +39,14 @@ function it_adds_domain(
3939 ) {
4040 $ host ->getScheme ()->shouldBeCalled ()->willReturn ('http:// ' );
4141 $ host ->getHost ()->shouldBeCalled ()->willReturn ('example.com ' );
42+ $ host ->getPort ()->shouldBeCalled ()->willReturn (8000 );
4243
4344 $ request ->getUri ()->shouldBeCalled ()->willReturn ($ uri );
4445 $ request ->withUri ($ uri )->shouldBeCalled ()->willReturn ($ request );
4546
4647 $ uri ->withScheme ('http:// ' )->shouldBeCalled ()->willReturn ($ uri );
4748 $ uri ->withHost ('example.com ' )->shouldBeCalled ()->willReturn ($ uri );
49+ $ uri ->withPort (8000 )->shouldBeCalled ()->willReturn ($ uri );
4850 $ uri ->getHost ()->shouldBeCalled ()->willReturn ('' );
4951
5052 $ this ->beConstructedWith ($ host );
@@ -58,13 +60,14 @@ function it_replaces_domain(
5860 ) {
5961 $ host ->getScheme ()->shouldBeCalled ()->willReturn ('http:// ' );
6062 $ host ->getHost ()->shouldBeCalled ()->willReturn ('example.com ' );
63+ $ host ->getPort ()->shouldBeCalled ()->willReturn (8000 );
6164
6265 $ request ->getUri ()->shouldBeCalled ()->willReturn ($ uri );
6366 $ request ->withUri ($ uri )->shouldBeCalled ()->willReturn ($ request );
6467
6568 $ uri ->withScheme ('http:// ' )->shouldBeCalled ()->willReturn ($ uri );
6669 $ uri ->withHost ('example.com ' )->shouldBeCalled ()->willReturn ($ uri );
67-
70+ $ uri -> withPort ( 8000 )-> shouldBeCalled ()-> willReturn ( $ uri );
6871
6972 $ this ->beConstructedWith ($ host , ['replace ' => true ]);
7073 $ this ->handleRequest ($ request , function () {}, function () {});
0 commit comments