19 lines
325 B
Plaintext
19 lines
325 B
Plaintext
|
|
--TEST--
|
||
|
|
Bug #60161: Implementing an interface extending Traversable is order dependent
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
|
||
|
|
interface Foo extends Traversable {
|
||
|
|
}
|
||
|
|
|
||
|
|
class Example implements Foo, IteratorAggregate {
|
||
|
|
public function getIterator(): Traversable {
|
||
|
|
return new ArrayIterator([]);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|
||
|
|
===DONE===
|
||
|
|
--EXPECT--
|
||
|
|
===DONE===
|