PluginProbe
UpStream: a Project Management Plugin for WordPress / trunk
UpStream: a Project Management Plugin for WordPress vtrunk
trunk 1.39.0 1.39.1 1.39.2 1.39.3 2.0.7 2.1.0
upstream / vendor / symfony / debug / Tests / phpt / debug_class_loader.phpt

debug_class_loader.phpt in UpStream: a Project Management Plugin for WordPress trunk, at vendor/symfony/debug/Tests/phpt/debug_class_loader.phpt

28 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 --TEST--
2 Test DebugClassLoader with previously loaded parents
3 --FILE--
4 <?php
5
6 namespace Symfony\Component\Debug\Tests\Fixtures;
7
8 use Symfony\Component\Debug\DebugClassLoader;
9
10 $vendor = __DIR__;
11 while (!file_exists($vendor.'/vendor')) {
12 $vendor = \dirname($vendor);
13 }
14 require $vendor.'/vendor/autoload.php';
15
16 class_exists(FinalMethod::class);
17
18 set_error_handler(function ($type, $msg) { echo $msg, "\n"; });
19
20 DebugClassLoader::enable();
21
22 class_exists(ExtendedFinalMethod::class);
23
24 ?>
25 --EXPECTF--
26 The "Symfony\Component\Debug\Tests\Fixtures\FinalMethod::finalMethod()" method is considered final since version 3.3. It may change without further notice as of its next major version. You should not extend it from "Symfony\Component\Debug\Tests\Fixtures\ExtendedFinalMethod".
27 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".
28