Пример #1
0
 public function testRecursiveErrorsHandlingLimit()
 {
     $handler = $this->handler;
     set_error_handler(function () use($handler) {
         $handler->handleError();
     });
     $this->connector->getErrorsDispatcher()->ignoreRepeatedSource = false;
     $this->connector->expects($this->exactly(\PhpConsole\Handler::ERRORS_RECURSION_LIMIT))->method('sendMessage');
     $this->handler->start();
     $this->handler->handleError();
 }