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:
@@ -35,4 +35,12 @@ class UidProcessor
|
|||||||
|
|
||||||
return $record;
|
return $record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getUid()
|
||||||
|
{
|
||||||
|
return $this->uid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user