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