xref: /php-src/Zend/tests/enum/__get.phpt (revision 9b984f52)
1--TEST--
2Enum __get
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8
9    public function __get(string $name)
10    {
11        return '__get';
12    }
13}
14
15?>
16--EXPECTF--
17Fatal error: Enum Foo cannot include magic method __get in %s on line %d
18