mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
18 lines
276 B
PHP
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"
|
|
}
|