xref: /php-src/tests/classes/autoload_015.phpt (revision d30cd7d7)
1--TEST--
2Ensure the ReflectionProperty constructor triggers autoload.
3--FILE--
4<?php
5spl_autoload_register(function ($name) {
6  echo "In autoload: ";
7  var_dump($name);
8});
9
10try {
11  new ReflectionProperty('UndefC', 'p');
12}
13catch (ReflectionException $e) {
14  echo $e->getMessage();
15}
16?>
17--EXPECT--
18In autoload: string(6) "UndefC"
19Class "UndefC" does not exist
20