NewRelicHandlerTest.php 730 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  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 Monolog\TestCase;
  12. use Monolog\Logger;
  13. class NewRelicHandlerTest extends TestCase
  14. {
  15. public function testFallbackHandler()
  16. {
  17. $handler = new NewRelicHandler();
  18. $fallbackHandler = new TestHandler();
  19. $record = array(
  20. 'level' => Logger::DEBUG,
  21. 'extra' => array(),
  22. );
  23. $handler->handle($record);
  24. $this->assertTrue($handler->isHandling($record));
  25. }
  26. }