@@ -36,15 +36,15 @@ function it_adds_domain_and_path(
36
36
UriInterface $ host ,
37
37
UriInterface $ uri
38
38
) {
39
- $ host ->getScheme ()->shouldBeCalled ()->willReturn ('https :// ' );
39
+ $ host ->getScheme ()->shouldBeCalled ()->willReturn ('http :// ' );
40
40
$ host ->getHost ()->shouldBeCalled ()->willReturn ('example.com ' );
41
41
$ host ->getPort ()->shouldBeCalled ()->willReturn (8000 );
42
42
$ host ->getPath ()->shouldBeCalled ()->willReturn ('/api ' );
43
43
44
44
$ request ->getUri ()->shouldBeCalled ()->willReturn ($ uri );
45
45
$ request ->withUri ($ uri )->shouldBeCalled ()->willReturn ($ request );
46
46
47
- $ uri ->withScheme ('https :// ' )->shouldBeCalled ()->willReturn ($ uri );
47
+ $ uri ->withScheme ('http :// ' )->shouldBeCalled ()->willReturn ($ uri );
48
48
$ uri ->withHost ('example.com ' )->shouldBeCalled ()->willReturn ($ uri );
49
49
$ uri ->withPort (8000 )->shouldBeCalled ()->willReturn ($ uri );
50
50
$ uri ->withPath ('/api/users ' )->shouldBeCalled ()->willReturn ($ uri );
@@ -60,15 +60,15 @@ function it_adds_domain(
60
60
UriInterface $ host ,
61
61
UriInterface $ uri
62
62
) {
63
- $ host ->getScheme ()->shouldBeCalled ()->willReturn ('https :// ' );
63
+ $ host ->getScheme ()->shouldBeCalled ()->willReturn ('http :// ' );
64
64
$ host ->getHost ()->shouldBeCalled ()->willReturn ('example.com ' );
65
65
$ host ->getPort ()->shouldBeCalled ()->willReturn (8000 );
66
66
$ host ->getPath ()->shouldBeCalled ()->willReturn ('/ ' );
67
67
68
68
$ request ->getUri ()->shouldBeCalled ()->willReturn ($ uri );
69
69
$ request ->withUri ($ uri )->shouldBeCalled ()->willReturn ($ request );
70
70
71
- $ uri ->withScheme ('https :// ' )->shouldBeCalled ()->willReturn ($ uri );
71
+ $ uri ->withScheme ('http :// ' )->shouldBeCalled ()->willReturn ($ uri );
72
72
$ uri ->withHost ('example.com ' )->shouldBeCalled ()->willReturn ($ uri );
73
73
$ uri ->withPort (8000 )->shouldBeCalled ()->willReturn ($ uri );
74
74
$ uri ->getHost ()->shouldBeCalled ()->willReturn ('' );
@@ -82,15 +82,15 @@ function it_replaces_domain_and_adds_path(
82
82
UriInterface $ host ,
83
83
UriInterface $ uri
84
84
) {
85
- $ host ->getScheme ()->shouldBeCalled ()->willReturn ('https :// ' );
85
+ $ host ->getScheme ()->shouldBeCalled ()->willReturn ('http :// ' );
86
86
$ host ->getHost ()->shouldBeCalled ()->willReturn ('example.com ' );
87
87
$ host ->getPort ()->shouldBeCalled ()->willReturn (8000 );
88
88
$ host ->getPath ()->shouldBeCalled ()->willReturn ('/api ' );
89
89
90
90
$ request ->getUri ()->shouldBeCalled ()->willReturn ($ uri );
91
91
$ request ->withUri ($ uri )->shouldBeCalled ()->willReturn ($ request );
92
92
93
- $ uri ->withScheme ('https :// ' )->shouldBeCalled ()->willReturn ($ uri );
93
+ $ uri ->withScheme ('http :// ' )->shouldBeCalled ()->willReturn ($ uri );
94
94
$ uri ->withHost ('example.com ' )->shouldBeCalled ()->willReturn ($ uri );
95
95
$ uri ->withPort (8000 )->shouldBeCalled ()->willReturn ($ uri );
96
96
$ uri ->withPath ('/api/users ' )->shouldBeCalled ()->willReturn ($ uri );
0 commit comments