1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-03 11:47:38 +02:00

Add getUid() to UidProcessor

This commit is contained in:
Jared Markell
2015-08-24 14:50:30 -07:00
parent d58755629d
commit 3a3d28f91a
2 changed files with 13 additions and 0 deletions

View File

@@ -35,4 +35,12 @@ class UidProcessor
return $record; return $record;
} }
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
} }

View File

@@ -24,4 +24,9 @@ class UidProcessorTest extends TestCase
$record = $processor($this->getRecord()); $record = $processor($this->getRecord());
$this->assertArrayHasKey('uid', $record['extra']); $this->assertArrayHasKey('uid', $record['extra']);
} }
public function testGetUid()
{
$processor = new UidProcessor(10);
$this->assertEquals(10, strlen($processor->getUid()));
}
} }