GraphAware\Neo4j\Client\Tests\Integration\TransactionIntegrationTest::testPushAndCommitInTxWithBolt PHP 메소드

testPushAndCommitInTxWithBolt() 공개 메소드

    public function testPushAndCommitInTxWithBolt()
    {
        $this->emptyDb();
        $tx = $this->client->transaction('bolt');
        $tx->push('MATCH (n) RETURN count(n)');
        $tx->push('MATCH (n) RETURN count(n)');
        $results = $tx->commit();
        $this->assertEquals(2, $results->size());
    }