コード例 #1
0
ファイル: GraphTest.php プロジェクト: pombredanne/php-cayley
 public function testVertexWithNodes()
 {
     $graph = new Graph();
     $this->assertInstanceOf('Cayley\\Gremlin\\Vertex', $graph->vertex(['foo', 'bar']));
     $this->assertEquals('graph.Vertex("foo", "bar")', (string) $graph);
 }
コード例 #2
0
 public function testSimpleVertex()
 {
     $graph = new Graph();
     $query = $graph->vertex('Humphrey Bogart')->all();
     $this->assertEquals('graph.Vertex("Humphrey Bogart").All()', (string) $query);
 }