Ejemplo n.º 1
0
 public function testConfigure()
 {
     $client = new Client();
     $client->configure(['port' => 2424, 'transport' => 'binary']);
     $transport = $client->getTransport();
     $this->assertInstanceOf('OrientDB\\Protocols\\Binary\\Transport', $transport);
 }
Ejemplo n.º 2
0
 /**
  * Insert a new record and get the value of the primary key.
  *
  * @param  array   $values
  * @param  string  $sequence
  * @return int
  */
 public function createClass($className)
 {
     // create a neo4j Node
     $node = $this->client->makeClass($className);
     // save the node
     $node->save();
 }
Ejemplo n.º 3
0
 public static function tearDownAfterClass()
 {
     if (static::$client->getDatabases()->exists(static::getDbName(), static::$dbStorage)) {
         static::$client->getDatabases()->drop(static::getDbName(), static::$dbStorage);
     }
 }