ru_php/ext/mbstring/tests/mb_regex_encoding_basic.phpt

38 lines
1,011 B
PHP

--TEST--
Test mb_regex_encoding() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_regex_encoding') or die("skip mb_regex_encoding() is not available in this build");
?>
--FILE--
<?php
/*
* Test Basic functionality of mb_regex_encoding
*/
echo "*** Testing mb_regex_encoding() : basic functionality ***\n";
var_dump(mb_regex_encoding());
var_dump(mb_regex_encoding('UTF-8'));
var_dump(mb_regex_encoding());
echo "Done";
?>
--EXPECTF--
*** Testing mb_regex_encoding() : basic functionality ***
Deprecated: Function mb_regex_encoding() is deprecated since 8.6, because the underlying library is no longer maintained in %s on line %d
string(%d) "%s"
Deprecated: Function mb_regex_encoding() is deprecated since 8.6, because the underlying library is no longer maintained in %s on line %d
bool(true)
Deprecated: Function mb_regex_encoding() is deprecated since 8.6, because the underlying library is no longer maintained in %s on line %d
string(5) "UTF-8"
Done