1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 01:26:11 +02:00

Test suite and supporting handler for WhatFailureGroupHandler

This commit is contained in:
Craig D'Amelio
2014-09-24 13:45:06 -04:00
parent 5b52bc05ba
commit d7939f3463
2 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace Monolog\Handler;
use Monolog\Logger;
/**
* Used for testing purposes.
*
* It records all records and gives you access to them for verification. It
* throws an exception from handle and handleBatch to test the
* WhatFailureGroupHandler Class.
*
* @author Craig D'Amelio <craig@damelio.ca>
*/
class ExceptionTestHandler extends TestHandler
{
/**
* {@inheritdoc}
*/
public function handle(array $record) {
$return = parent::handle($record);
throw new \Exception("ExceptionTestHandler::handle");
}
}