1--TEST--
2round() rejects invalid rounding modes.
3--FILE--
4<?php
5try {
6    var_dump(round(1.5, mode: 1234));
7} catch (ValueError $e) {
8    echo $e->getMessage(), PHP_EOL;
9}
10?>
11--EXPECT--
12round(): Argument #3 ($mode) must be a valid rounding mode (RoundingMode::*)
13