public function testHandleError()
 {
     $notifier = fpErrorNotifier::getInstance();
     $notifier->driver()->expects($this->once())->method('notify')->with($this->equalTo($notifier->decoratedMessage('foo')));
     $handler = new fpErrorNotifierHandler(new sfEventDispatcher(), array());
     $handler->handleError(E_WARNING, 'an error', 'foo.php', 200);
 }
 /**
  * (non-PHPdoc)
  * @see fpErrorNotifierHandler::handleError()
  */
 public function handleError($errno, $errstr, $errfile, $errline)
 {
     // Set becvause of @ error-control operator.
     if ($this->options['ignore_@'] && 0 == error_reporting()) {
         return;
     }
     return parent::handleError($errno, $errstr, $errfile, $errline);
 }