1--TEST--
2Random: Engine: Mt19937: Invalid $mode parameter values must be rejected
3--FILE--
4<?php
5
6use Random\Engine\Mt19937;
7
8try {
9    new Mt19937(1234, 2);
10} catch (ValueError $e) {
11    echo $e->getMessage(), PHP_EOL;
12}
13
14?>
15--EXPECT--
16Random\Engine\Mt19937::__construct(): Argument #2 ($mode) must be either MT_RAND_MT19937 or MT_RAND_PHP
17