summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/preload_trait_alias.phpt
blob: 89b843cd76e3ad1844553e1931feef8d7c797a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Preloading trait uses with aliased names
--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
var_dump(get_class_methods('TraitAliasTest'));
?>
--EXPECT--
array(2) {
  [0]=>
  string(3) "bar"
  [1]=>
  string(3) "foo"
}