1--TEST--
2Test mb_detect_order() function : empty encoding list
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7
8try {
9    var_dump( mb_detect_order(''));
10} catch (\ValueError $e) {
11    echo $e->getMessage() . \PHP_EOL;
12}
13try {
14    var_dump( mb_detect_order([]));
15} catch (\ValueError $e) {
16    echo $e->getMessage() . \PHP_EOL;
17}
18
19?>
20--EXPECT--
21mb_detect_order(): Argument #1 ($encoding) must specify at least one encoding
22mb_detect_order(): Argument #1 ($encoding) must specify at least one encoding
23