public function testConfigure() { $client = new Client(); $client->configure(['port' => 2424, 'transport' => 'binary']); $transport = $client->getTransport(); $this->assertInstanceOf('OrientDB\\Protocols\\Binary\\Transport', $transport); }
/** * 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(); }
public static function tearDownAfterClass() { if (static::$client->getDatabases()->exists(static::getDbName(), static::$dbStorage)) { static::$client->getDatabases()->drop(static::getDbName(), static::$dbStorage); } }