Reuse existing Strings::getRandomHex function

This commit is contained in:
Philipp Holzer 2019-02-27 18:32:25 +01:00
parent f4dfd4f649
commit 2b53784094
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
2 changed files with 3 additions and 28 deletions

View file

@ -15,15 +15,11 @@ class WorkerLoggerTest extends MockedTest
/**
* Test the a id with length zero
* @expectedException
* @expectedException \Error
*/
public function testGetWorkerIdZero()
{
$logger = \Mockery::mock(LoggerInterface::class);
$logger
->shouldReceive('alert')
->with('id length must be greater than 0.')
->once();
new WorkerLogger($logger, 'test', 0);
}