| 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 |
|