Example #1
0
 /**
  * @covers Paradox\toolbox\Query::explain
  */
 public function testExplainWithInvalidAQL()
 {
     $query = "FOR doc in @@collection return u";
     try {
         $results = $this->query->explain($query);
     } catch (\Exception $e) {
         $this->assertInstanceOf('Paradox\\exceptions\\QueryException', $e, 'Exception thrown was not a Paradox\\exceptions\\QueryException');
         return;
     }
     $this->fail("Running explain with an invalid AQL or missing parameter array did not throw an exception");
 }