8000 [Debug] fixed tests · sroze/symfony@5f7cec1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f7cec1

Browse files
committed
[Debug] fixed tests
1 parent bb619ba commit 5f7cec1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testNotice()
110110
$exceptionCheck = function($exception) use ($that) {
111111
$that->assertInstanceOf('Symfony\Component\Debug\Exception\ContextErrorException', $exception);
112112
$that->assertEquals(E_NOTICE, $exception->getSeverity());
113-
$that->assertEquals(__LINE__ + 40, $exception->getLine());
113+
$that->assertEquals(__LINE__ + 44, $exception->getLine());
114114
$that->assertEquals(__FILE__, $exception->getFile());
115115
$that->assertRegexp('/^Notice: Undefined variable: (foo|bar)/', $exception->getMessage());
116116
$that->assertArrayHasKey('foobar', $exception->getContext());
@@ -267,10 +267,10 @@ public function provideFatalErrorHandlersData()
267267
'type' => 1,
268268
'line' => 12,
269269
'file' => 'foo.php',
270-
'message' => 'Call to undefined function test_namespaced_function()',
270+
'message' => 'Call to undefined function test_namespaced_function_again()',
271271
),
272272
'Symfony\Component\Debug\Exception\UndefinedFunctionException',
273-
'Attempted to call function "test_namespaced_function" from the global namespace in foo.php line 12. Did you mean to call: "\\symfony\\component\\debug\\tests\\fatalerrorhandler\\test_namespaced_function"?',
273+
'Attempted to call function "test_namespaced_function_again" from the global namespace in foo.php line 12. Did you mean to call: "\\symfony\\component\\debug\\tests\\test_namespaced_function_again"?',
274274
),
275275
// class not found
276276
array(
@@ -286,3 +286,8 @@ public function provideFatalErrorHandlersData()
286286
);
287287
}
288288
}
289+
290+
291+
function test_namespaced_function_again()
292+
{
293+
}

0 commit comments

Comments
 (0)
0