xref: /php-src/ext/mbstring/tests/bug78609.phpt (revision 74859783)
1--TEST--
2Bug #78609 (mb_check_encoding() no longer supports stringable objects)
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7class Foo
8{
9    public function __toString()
10    {
11        return 'string_representation';
12    }
13}
14
15var_dump(mb_check_encoding(new Foo, 'UTF-8'));
16?>
17--EXPECT--
18bool(true)
19