GraphAware\Neo4j\Client\Tests\Integration\ClientGetExceptionIntegrationTest::testExceptionHandling PHP Method

testExceptionHandling() public method

    public function testExceptionHandling()
    {
        $client = ClientBuilder::create()->addConnection('default', 'bolt://localhost')->build();
        $this->setExpectedException(Neo4jException::class);
        $result = $client->run("CREATE (n:Cool");
    }
ClientGetExceptionIntegrationTest