MockRavenClient.php 598 B

123456789101112131415161718192021222324252627
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of the Monolog package.
  4. *
  5. * (c) Jordi Boggiano <j.boggiano@seld.be>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Monolog\Handler;
  11. use Raven_Client;
  12. class MockRavenClient extends Raven_Client
  13. {
  14. public function capture($data, $stack, $vars = null)
  15. {
  16. $data = array_merge($this->get_user_data(), $data);
  17. $this->lastData = $data;
  18. $this->lastStack = $stack;
  19. }
  20. public $lastData;
  21. public $lastStack;
  22. }