1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 09:06:10 +02:00
Files
php-monolog/src/Monolog/Handler/ExceptionTestHandler.php
2014-09-30 14:24:28 +01:00

35 lines
790 B
PHP

<?php
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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");
}
}