3 declare(strict_types=1);
    13         $this->assertInstanceOf(\ilRandom::class, 
new ilRandom());
    21         $this->expectNotToPerformAssertions();
    23         $random = new \ilRandom();
    25             $random->int(...$arguments);
    27             $this->fail(
'Expected no exception.');
    33         $this->expectException(Error::class);
    34         $random = new \ilRandom();
    41         $this->expectException(Error::class);
    43         $logger = $this->getMockBuilder(\ilLogger::class)->disableOriginalConstructor()->getMock();
    45         $logger->expects(self::once())->method(
'error');
    47         $factory = $this->getMockBuilder(ilLoggerFactory::class)->disableOriginalConstructor()->getMock();
    48         $factory->expects(self::once())->method(
'getComponentLogger')->with(
'rnd')->willReturn($logger);
    54         $random = new \ilRandom();
    63             'No arguments can be provided' => [],
    64             'One argument can be provided' => [34],
    65             '2 arguments can be provided' => [-20, 30],
    66             'The limit is inclusive' => [8, 8]
 
Customizing of pimple-DIC for ILIAS. 
 
Wrapper for generation of random numbers, strings, bytes. 
 
testIntWithInvalidArguments()
 
testIntSuccessfully(int ... $arguments)
intArguments