1--TEST--
2Test property_exists() function : class auto loading
3--FILE--
4<?php
5echo "*** Testing property_exists() : class auto loading ***\n";
6
7spl_autoload_register(function ($class_name) {
8    require_once $class_name . '.inc';
9});
10
11echo "\ntesting property in autoloaded class\n";
12var_dump(property_exists("AutoTest", "bob"));
13
14echo "\ntesting __get magic method\n";
15var_dump(property_exists("AutoTest", "foo"));
16
17?>
18--EXPECT--
19*** Testing property_exists() : class auto loading ***
20
21testing property in autoloaded class
22bool(true)
23
24testing __get magic method
25bool(false)
26