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();
 }
Beispiel #2
0
 function gethostname()
 {
     return SplOverride::gethostname();
 }