/** * Test if the validate function works */ public function testValidateStatement() { $connection = $this->connection; $collection = $this->collection; $document = new Document(); $documentHandler = new DocumentHandler($connection); $document->someAttribute = 'someValue'; $documentHandler->add($collection->getId(), $document); $statement = new Statement($connection, array("query" => '', "count" => true, "batchSize" => 1000, "_sanitize" => true)); $statement->setQuery('FOR a IN `ArangoDB_PHP_TestSuite_TestCollection_01` RETURN a'); $result = $statement->validate(); $this->assertArrayHasKey('bindVars', $result, "result-array does not contain plan !"); }