/** * Get the unix timestamp of the server with microsecond precision * @throws ServerException * @return float */ public function getTime() { try { return $this->_toolbox->getAdminHandler()->getServerTime(); } catch (\Exception $e) { $normalised = $this->_toolbox->normaliseDriverExceptions($e); throw new ServerException($normalised['message'], $normalised['code']); } }
/** * @covers Paradox\Toolbox::getAdminHandler */ public function testGetAdminHandler() { $adminHandler = $this->toolbox->getAdminHandler(); $this->assertInstanceOf('triagens\\ArangoDb\\AdminHandler', $adminHandler, 'getAdminHandler() did not return a triagens\\ArangoDb\\AdminHandler'); }