File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes / autoload_013.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 4 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Ensure the ReflectionClass constructor triggers autoload.
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
  function __autoload($name)
  {
      echo "In autoload: ";
      var_dump($name);
  }
  
  try {
      new ReflectionClass("UndefC");
  }
  catch (ReflectionException $e) {
      echo $e->getMessage();
  }
?>
--EXPECTF--
In autoload: string(6) "UndefC"
Class UndefC does not exist

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>