To be tested by the CI automated nightly test runs.
Under PHP 7.2-rc3 I get
PHP Fatal error: Cannot use 'object' as class name as it is reserved in moodle/lib/setuplib.php on line 66
PHP 7.2 prepare behat extension for
PHP7.2 replace usages of deprecated functions in core
'object' reserved from php7 onwards