--TEST--
Test mb_convert_variables() function : empty encoding list
--SKIPIF--
<?php
extension_loaded('mbstring') or die('skip');
?>
--FILE--
<?php

$string = 'Hello';

try {
    var_dump( mb_convert_variables('UTF-8', '', $string));
} catch (\ValueError $e) {
    echo $e->getMessage() . \PHP_EOL;
}
try {
    var_dump( mb_convert_variables('UTF-8', [], $string));
} catch (\ValueError $e) {
    echo $e->getMessage() . \PHP_EOL;
}

?>
--EXPECT--
mb_convert_variables(): Argument #2 ($from_encoding) must specify at least one encoding
mb_convert_variables(): Argument #2 ($from_encoding) must specify at least one encoding
