xref: /PHP-8.2/Zend/tests/enum/var_export.phpt (revision 25cb9cdb)
1--TEST--
2Enum var_export
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8}
9
10var_export(Foo::Bar);
11// Should not warn about recursion
12echo "\n";
13echo str_replace(" \n", "\n", var_export([Foo::Bar], true));
14
15?>
16--EXPECT--
17\Foo::Bar
18array (
19  0 =>
20  \Foo::Bar,
21)
22