AbstractHandlerTest.php 690 B

12345678910111213141516171819202122232425262728
  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 AbstractHandlerTest extends TestCase
  14. {
  15. /**
  16. * @covers Monolog\Handler\AbstractHandler::isHandling
  17. */
  18. public function testIsHandling()
  19. {
  20. $handler = new TestHandler(Logger::WARNING, false);
  21. $this->assertTrue($handler->isHandling($this->getRecord()));
  22. $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
  23. }
  24. }