php-src/Zend/tests/magic_methods/interface_with_tostring.phpt
DanielEScherzer a50f82bebf
Zend/tests: organize some tests with sub directories (6) (#17807)
Move more tests into existing directories

Work towards GH-15631
2025-02-15 14:55:07 +00:00

18 lines
276 B
PHP

--TEST--
Interface with __toString() method
--FILE--
<?php
interface MyStringable {
public function __toString(): string;
}
$rc = new ReflectionClass(MyStringable::class);
var_dump($rc->getInterfaceNames());
?>
--EXPECT--
array(1) {
[0]=>
string(10) "Stringable"
}