mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 01:26:11 +02:00
tests/Monolog/Handler/RavenHandlerTest.php into a separate file so that the test can pass when raven-php is installed and can be skipped when raven-php is not installed. Addresses @Stof's comment in https://github.com/Seldaek/monolog/pull/76#r740465
27 lines
499 B
PHP
27 lines
499 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 Raven_Client;
|
|
|
|
class MockRavenClient extends Raven_Client
|
|
{
|
|
public function capture($data, $stack)
|
|
{
|
|
$this->lastData = $data;
|
|
$this->lastStack = $stack;
|
|
}
|
|
|
|
public $lastData;
|
|
public $lastStack;
|
|
}
|