debug_class_loader.phpt 1019 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Test DebugClassLoader with previously loaded parents
  3. --FILE--
  4. <?php
  5. namespace Symfony\Component\Debug\Tests\Fixtures;
  6. use Symfony\Component\Debug\DebugClassLoader;
  7. $vendor = __DIR__;
  8. while (!file_exists($vendor.'/vendor')) {
  9. $vendor = \dirname($vendor);
  10. }
  11. require $vendor.'/vendor/autoload.php';
  12. class_exists(FinalMethod::class);
  13. set_error_handler(function ($type, $msg) { echo $msg, "\n"; });
  14. DebugClassLoader::enable();
  15. class_exists(ExtendedFinalMethod::class);
  16. ?>
  17. --EXPECTF--
  18. The "Symfony\Component\Debug\Tests\Fixtures\FinalMethod::finalMethod()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Symfony\Component\Debug\Tests\Fixtures\ExtendedFinalMethod".
  19. The "Symfony\Component\Debug\Tests\Fixtures\FinalMethod::finalMethod2()" method is considered final. It may change without further notice as of its next major version. You should not extend it from "Symfony\Component\Debug\Tests\Fixtures\ExtendedFinalMethod".