xref: /PHP-8.1/Zend/tests/bug62609.phpt (revision e9ae581f)
1--TEST--
2Bug #62609: Allow implementing Traversable on abstract classes (fail)
3--FILE--
4<?php
5
6abstract class AbstractTraversable implements Traversable {}
7
8class NonAbstractTraversable extends AbstractTraversable {}
9
10?>
11--EXPECT--
12Fatal error: Class NonAbstractTraversable must implement interface Traversable as part of either Iterator or IteratorAggregate in Unknown on line 0
13