xref: /php-src/ext/opcache/tests/preload_enum.phpt (revision f39b5c4c)
1--TEST--
2Enum preloading
3--EXTENSIONS--
4opcache
5--INI--
6opcache.enable=1
7opcache.enable_cli=1
8opcache.optimization_level=-1
9opcache.preload={PWD}/preload_enum.inc
10--SKIPIF--
11<?php
12if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
13?>
14--FILE--
15<?php
16
17var_dump(MyEnum::Foo);
18var_dump(MyEnum::Bar);
19
20?>
21--EXPECT--
22enum(MyEnum::Bar)
23enum(MyEnum::Foo)
24enum(MyEnum::Bar)
25