mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-30 18:00:17 +02:00
Add getUid() to UidProcessor
This commit is contained in:
@@ -35,4 +35,12 @@ class UidProcessor
|
||||
|
||||
return $record;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getUid()
|
||||
{
|
||||
return $this->uid;
|
||||
}
|
||||
}
|
||||
|
@@ -24,4 +24,9 @@ class UidProcessorTest extends TestCase
|
||||
$record = $processor($this->getRecord());
|
||||
$this->assertArrayHasKey('uid', $record['extra']);
|
||||
}
|
||||
public function testGetUid()
|
||||
{
|
||||
$processor = new UidProcessor(10);
|
||||
$this->assertEquals(10, strlen($processor->getUid()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user