1--TEST--
2Interface with __toString() method
3--FILE--
4<?php
5
6interface MyStringable {
7    public function __toString(): string;
8}
9
10$rc = new ReflectionClass(MyStringable::class);
11var_dump($rc->getInterfaceNames());
12
13?>
14--EXPECT--
15array(1) {
16  [0]=>
17  string(10) "Stringable"
18}
19