GraphAware\Neo4j\Client\Tests\Integration\CypherIntegrationTest::testNodeIsReturned PHP 메소드

testNodeIsReturned() 공개 메소드

public testNodeIsReturned ( )
    public function testNodeIsReturned()
    {
        $query = 'CREATE (n:Node) RETURN n';
        $record1 = $this->client->run($query, [], null, 'http')->firstRecord();
        $this->assertInstanceOf(Node::class, $record1->get('n'));
        $this->assertInstanceOf(HttpNode::class, $record1->get('n'));
        $record2 = $this->client->run($query, [], null, 'bolt')->firstRecord();
        $this->assertInstanceOf(Node::class, $record2->get('n'));
        $this->assertInstanceOf(BoltNode::class, $record2->get('n'));
    }