From 77fa2830910943e98334aa3641758927082ebe8f Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Thu, 18 Jul 2019 18:35:50 -0400 Subject: [PATCH] Fix Debug component tests --- .../FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php index 112dfbb7f7..9a56b3b4ec 100644 --- a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php +++ b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php @@ -71,6 +71,7 @@ class ClassNotFoundFatalErrorHandlerTest extends TestCase { $autoloader = new ComposerClassLoader(); $autoloader->add('Symfony\Component\Debug\Exception\\', realpath(__DIR__.'/../../Exception')); + $autoloader->add('Symfony_Component_Debug_Tests_Fixtures', realpath(__DIR__.'/../../Tests/Fixtures')); $debugClassLoader = new DebugClassLoader([$autoloader, 'loadClass']); @@ -101,6 +102,7 @@ class ClassNotFoundFatalErrorHandlerTest extends TestCase 'message' => 'Class \'UndefinedFunctionException\' not found', ], "/^Attempted to load class \"UndefinedFunctionException\" from the global namespace.\nDid you forget a \"use\" statement for .*\"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?$/", + [$debugClassLoader, 'loadClass'], ], [ [ @@ -110,6 +112,7 @@ class ClassNotFoundFatalErrorHandlerTest extends TestCase 'message' => 'Class \'PEARClass\' not found', ], "/^Attempted to load class \"PEARClass\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony_Component_Debug_Tests_Fixtures_PEARClass\"\?$/", + [$debugClassLoader, 'loadClass'], ], [ [ @@ -119,6 +122,7 @@ class ClassNotFoundFatalErrorHandlerTest extends TestCase 'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found', ], "/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for .*\"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?$/", + [$debugClassLoader, 'loadClass'], ], [ [