summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/preload_003.phpt
blob: 9ecec31aaed37930680125efdd6c6f14a0079fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Preloading classes linked with traits
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
opcache.preload={PWD}/preload.inc
--SKIPIF--
<?php
require_once('skipif.inc');
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
?>
--FILE--
<?php
Y::foo();
Y::bar();
?>
OK
--EXPECT--
string(7) "T1::foo"
string(7) "T2::bar"
OK