public function testGetHostNameException() { $req = new GetHostnameRequest(); $resp = new ApplicationError(ErrorCode::TRANSIENT_ERROR, 'unkonwn'); $this->apiProxyMock->expectCall('modules', 'GetHostname', $req, $resp); $this->assertEquals(false, SplOverride::gethostname()); $this->apiProxyMock->verify(); }
function gethostname() { return SplOverride::gethostname(); }