1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47:39 +02:00

Merge pull request #636 from jaredm4/master

Add getUid() to UidProcessor
This commit is contained in:
Jordi Boggiano
2015-08-27 21:21:13 +01:00
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()));
}
} }