xref: /PHP-8.4/Zend/tests/gh7792_5.phpt (revision 733023b2)
1--TEST--
2GH-7792 (Refer to enum as enum instead of class)
3--FILE--
4<?php
5
6enum Foo implements Traversable {}
7
8?>
9--EXPECT--
10Fatal error: Enum Foo must implement interface Traversable as part of either Iterator or IteratorAggregate in Unknown on line 0
11