Example #1
0
 protected function validateQuery($query)
 {
     try {
         $this->validator->isValid($query);
     } catch (\Exception $e) {
         $this->errors[] = $e->getMessage();
         return false;
     }
     $this->address = $this->validator->getAddress();
     $this->prefix = $this->validator->getPrefix();
     return true;
 }
 /**
  * @expectedException \Exception
  * @expectedExceptionMessage No validated prefix exists
  */
 public function testExceptionGetPrefixWithoutValidation()
 {
     self::$class->getPrefix();
 }