Skip to content

Commit 77fa283

Browse files
committed
Fix Debug component tests
1 parent e5bd6ff commit 77fa283

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function provideClassNotFoundData()
7171
{
7272
$autoloader = new ComposerClassLoader();
7373
$autoloader->add('Symfony\Component\Debug\Exception\\', realpath(__DIR__.'/../../Exception'));
74+
$autoloader->add('Symfony_Component_Debug_Tests_Fixtures', realpath(__DIR__.'/../../Tests/Fixtures'));
7475

7576
$debugClassLoader = new DebugClassLoader([$autoloader, 'loadClass']);
7677

@@ -101,6 +102,7 @@ public function provideClassNotFoundData()
101102
'message' => 'Class \'UndefinedFunctionException\' not found',
102103
],
103104
"/^Attempted to load class \"UndefinedFunctionException\" from the global namespace.\nDid you forget a \"use\" statement for .*\"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?$/",
105+
[$debugClassLoader, 'loadClass'],
104106
],
105107
[
106108
[
@@ -110,6 +112,7 @@ public function provideClassNotFoundData()
110112
'message' => 'Class \'PEARClass\' not found',
111113
],
112114
"/^Attempted to load class \"PEARClass\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony_Component_Debug_Tests_Fixtures_PEARClass\"\?$/",
115+
[$debugClassLoader, 'loadClass'],
113116
],
114117
[
115118
[
@@ -119,6 +122,7 @@ public function provideClassNotFoundData()
119122
'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
120123
],
121124
"/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for .*\"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?$/",
125+
[$debugClassLoader, 'loadClass'],
122126
],
123127
[
124128
[

0 commit comments

Comments
 (0)