Skip to content

Commit bf9ce8b

Browse files
[Debug] fix merge
1 parent 702916b commit bf9ce8b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function provideClassNotFoundData()
9999
'file' => 'foo.php',
100100
'message' => 'Class \'WhizBangFactory\' not found',
101101
],
102-
"Attempted to load class \"WhizBangFactory\" from the global namespace.\nDid you forget a \"use\" statement?",
102+
"/^Attempted to load class \"WhizBangFactory\" from the global namespace.\nDid you forget a \"use\" statement\?$/",
103103
],
104104
[
105105
[
@@ -108,7 +108,7 @@ public function provideClassNotFoundData()
108108
'file' => 'foo.php',
109109
'message' => 'Class \'Foo\\Bar\\WhizBangFactory\' not found',
110110
],
111-
"Attempted to load class \"WhizBangFactory\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?",
111+
"/^Attempted to load class \"WhizBangFactory\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for another namespace\?$/",
112112
],
113113
[
114114
[
@@ -144,7 +144,7 @@ public function provideClassNotFoundData()
144144
'file' => 'foo.php',
145145
'message' => 'Class \'UndefinedFunctionException\' not found',
146146
],
147-
"Attempted to load class \"UndefinedFunctionException\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony\Component\Debug\Exception\UndefinedFunctionException\"?",
147+
"/^Attempted to load class \"UndefinedFunctionException\" from the global namespace.\nDid you forget a \"use\" statement for .*\"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?$/",
148148
[$debugClassLoader, 'loadClass'],
149149
],
150150
[
@@ -154,7 +154,7 @@ public function provideClassNotFoundData()
154154
'file' => 'foo.php',
155155
'message' => 'Class \'PEARClass\' not found',
156156
],
157-
"Attempted to load class \"PEARClass\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony_Component_Debug_Tests_Fixtures_PEARClass\"?",
157+
"/^Attempted to load class \"PEARClass\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony_Component_Debug_Tests_Fixtures_PEARClass\"\?$/",
158158
[$debugClassLoader, 'loadClass'],
159159
],
160160
[
@@ -164,7 +164,7 @@ public function provideClassNotFoundData()
164164
'file' => 'foo.php',
165165
'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
166166
],
167-
"Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\Debug\Exception\UndefinedFunctionException\"?",
167+
"/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for .*\"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?$/",
168168
[$debugClassLoader, 'loadClass'],
169169
],
170170
[
@@ -174,7 +174,7 @@ public function provideClassNotFoundData()
174174
'file' => 'foo.php',
175175
'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
176176
],
177-
"Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\Debug\Exception\UndefinedFunctionException\"?",
177+
"/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for \"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?$/",
178178
[$autoloader, 'loadClass'],
179179
],
180180
[
@@ -184,7 +184,7 @@ public function provideClassNotFoundData()
184184
'file' => 'foo.php',
185185
'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
186186
],
187-
"Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\Debug\Exception\UndefinedFunctionException\"?",
187+
"/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for \"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?/",
188188
[$debugClassLoader, 'loadClass'],
189189
],
190190
[
@@ -194,7 +194,7 @@ public function provideClassNotFoundData()
194194
'file' => 'foo.php',
195195
'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
196196
],
197-
"Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?",
197+
"/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for another namespace\?$/",
198198
function ($className) { /* do nothing here */ },
199199
],
200200
];

0 commit comments

Comments
 (0)