ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
MockRavenClient.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of the Monolog package.
5 *
6 * (c) Jordi Boggiano <j.boggiano@seld.be>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Monolog\Handler;
13
14use Raven_Client;
15
16class MockRavenClient extends Raven_Client
17{
18 public function capture($data, $stack, $vars = null)
19 {
20 $data = array_merge($this->get_user_data(), $data);
21 $this->lastData = $data;
22 $this->lastStack = $stack;
23 }
24
25 public $lastData;
26 public $lastStack;
27}
An exception for terminatinating execution or to throw for unit testing.
capture($data, $stack, $vars=null)