Example #1
0
 protected function hasOnlyIgnorableExceptions()
 {
     if ($this->configuration->getIgnorableExceptions() == null) {
         return false;
     }
     $ignorableExceptions = $this->configuration->getIgnorableExceptions();
     foreach ($this->errors as $error) {
         $exceptionIgnored = false;
         foreach ($ignorableExceptions as $ignorable) {
             if ($error instanceof $ignorable) {
                 $exceptionIgnored = true;
             }
         }
         if (!$exceptionIgnored) {
             return false;
         }
     }
     return true;
 }