public function testRetrieveIgnoreForcedScheme() { $scheme = 'https'; UriSchemeFactory::setForcedScheme($scheme); $server = ['foo' => 'bar']; $this->assertNotEquals($scheme, UriSchemeFactory::retrieve($server)); }
public function testGetHost() { UriSchemeFactory::setForcedScheme('https'); UriHostFactory::setForcedHost('foo.bar'); $helper = new Url(); $expected = 'https://foo.bar'; $this->assertSame($expected, $helper->getHost()); }