public function testCheckConnection() { $map = [['a', 'b', 'c', 'd'], ['e', 'f', 'g', 'h']]; $this->xmlRpcClient->method('call')->willReturnMap($map); $connection = new Connection($this->xmlRpcClient); $this->assertInternalType('int', $connection->checkConnection()); }