1--TEST--
2Random: Randomizer: Engines calling exit() are gracefully handled
3--FILE--
4<?php
5
6use Random\Engine;
7use Random\Randomizer;
8
9final class ExitingEngine implements Engine
10{
11    public function generate(): string
12    {
13        exit("Exit\n");
14    }
15}
16
17$randomizer = new Randomizer(new ExitingEngine());
18
19var_dump($randomizer->getBytes(1));
20
21?>
22--EXPECT--
23Exit
24