mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 07:06:40 +02:00
Simplify code and cache the getmypid call, refs #167
This commit is contained in:
@@ -25,5 +25,6 @@ class ProcessIdProcessorTest extends TestCase
|
||||
$this->assertArrayHasKey('process_id', $record['extra']);
|
||||
$this->assertInternalType('int', $record['extra']['process_id']);
|
||||
$this->assertGreaterThan(0, $record['extra']['process_id']);
|
||||
$this->assertEquals(getmypid(), $record['extra']['process_id']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user