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); }
/** * * @param Exception $e * * @return void */ public function handleException(Exception $e) { if ($this->ignoreException($e) || $this->ignoreError($e)) { return; } parent::handleException($e); }
/** * * @param Exception $e * * @return void */ public function handleException(Exception $e) { if ($this->ignoreException($e) || $this->ignoreError($e) || $this->ignoreDuplication($e)) { return; } $this->registerExceptionAsKnown($e); parent::handleException($e); }