예제 #1
0
파일: Server.php 프로젝트: f21/paradox
 /**
  * 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']);
     }
 }
예제 #2
0
파일: ToolboxTest.php 프로젝트: f21/paradox
 /**
  * @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');
 }