@@ -39,12 +39,14 @@ function it_adds_domain(
39
39
) {
40
40
$ host ->getScheme ()->shouldBeCalled ()->willReturn ('http:// ' );
41
41
$ host ->getHost ()->shouldBeCalled ()->willReturn ('example.com ' );
42
+ $ host ->getPort ()->shouldBeCalled ()->willReturn (8000 );
42
43
43
44
$ request ->getUri ()->shouldBeCalled ()->willReturn ($ uri );
44
45
$ request ->withUri ($ uri )->shouldBeCalled ()->willReturn ($ request );
45
46
46
47
$ uri ->withScheme ('http:// ' )->shouldBeCalled ()->willReturn ($ uri );
47
48
$ uri ->withHost ('example.com ' )->shouldBeCalled ()->willReturn ($ uri );
49
+ $ uri ->withPort (8000 )->shouldBeCalled ()->willReturn ($ uri );
48
50
$ uri ->getHost ()->shouldBeCalled ()->willReturn ('' );
49
51
50
52
$ this ->beConstructedWith ($ host );
@@ -58,13 +60,14 @@ function it_replaces_domain(
58
60
) {
59
61
$ host ->getScheme ()->shouldBeCalled ()->willReturn ('http:// ' );
60
62
$ host ->getHost ()->shouldBeCalled ()->willReturn ('example.com ' );
63
+ $ host ->getPort ()->shouldBeCalled ()->willReturn (8000 );
61
64
62
65
$ request ->getUri ()->shouldBeCalled ()->willReturn ($ uri );
63
66
$ request ->withUri ($ uri )->shouldBeCalled ()->willReturn ($ request );
64
67
65
68
$ uri ->withScheme ('http:// ' )->shouldBeCalled ()->willReturn ($ uri );
66
69
$ uri ->withHost ('example.com ' )->shouldBeCalled ()->willReturn ($ uri );
67
-
70
+ $ uri -> withPort ( 8000 )-> shouldBeCalled ()-> willReturn ( $ uri );
68
71
69
72
$ this ->beConstructedWith ($ host , ['replace ' => true ]);
70
73
$ this ->handleRequest ($ request , function () {}, function () {});
0 commit comments