2
0

ProcessIdProcessorTest.php 771 B

1234567891011121314151617181920212223242526272829
  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\Processor;
  11. use Monolog\TestCase;
  12. class ProcessIdProcessorTest extends TestCase
  13. {
  14. /**
  15. * @covers Monolog\Processor\ProcessIdProcessor::__invoke
  16. */
  17. public function testProcessor()
  18. {
  19. $processor = new ProcessIdProcessor();
  20. $record = $processor($this->getRecord());
  21. $this->assertArrayHasKey('process_id', $record['extra']);
  22. $this->assertInternalType('int', $record['extra']['process_id']);
  23. $this->assertGreaterThan(0, $record['extra']['process_id']);
  24. }
  25. }