public function getOutput() { $output = $this->_request->getServer('HTTPS') === 'off' || !$this->_request->getServer('HTTPS') ? 'http' : 'https'; return $output; }
/** * testProtocol * * @since 2.4.0 */ public function testProtocol() { /* setup */ $protocol = new Server\Protocol($this->_request); /* actual */ $actual = $protocol->getOutput(); /* compare */ $this->assertEquals('http', $actual); }