Example #1
0
 public function testVertexWithNodes()
 {
     $graph = new Graph();
     $this->assertInstanceOf('Cayley\\Gremlin\\Vertex', $graph->vertex(['foo', 'bar']));
     $this->assertEquals('graph.Vertex("foo", "bar")', (string) $graph);
 }
 public function testSimpleVertex()
 {
     $graph = new Graph();
     $query = $graph->vertex('Humphrey Bogart')->all();
     $this->assertEquals('graph.Vertex("Humphrey Bogart").All()', (string) $query);
 }