Skip to content

Commit f9a983b

Browse files
[HttpKernel] fix merge
1 parent 8b0a573 commit f9a983b

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

Tests/DataCollector/RequestDataCollectorTest.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function provideControllerCallables(): array
109109
[
110110
'class' => DummyController::class,
111111
'method' => 'regularCallable',
112-
'file' => $r3->getFileName(),
112+
'file' => $r1->getFileName(),
113113
'line' => $r1->getStartLine(),
114114
],
115115
],
@@ -125,13 +125,24 @@ function () { return 'foo'; },
125125
],
126126
],
127127

128+
[
129+
'First-class callable closure',
130+
$controller->regularCallable(...),
131+
[
132+
'class' => DummyController::class,
133+
'method' => 'regularCallable',
134+
'file' => $r1->getFileName(),
135+
'line' => $r1->getStartLine(),
136+
],
137+
],
138+
128139
[
129140
'Static callback as string',
130141
DummyController::class.'::staticControllerMethod',
131142
[
132143
'class' => DummyController::class,
133144
'method' => 'staticControllerMethod',
134-
'file' => $r3->getFileName(),
145+
'file' => $r2->getFileName(),
135146
'line' => $r2->getStartLine(),
136147
],
137148
],
@@ -142,7 +153,7 @@ function () { return 'foo'; },
142153
[
143154
'class' => DummyController::class,
144155
'method' => 'staticControllerMethod',
145-
'file' => $r3->getFileName(),
156+
'file' => $r2->getFileName(),
146157
'line' => $r2->getStartLine(),
147158
],
148159
],
@@ -153,7 +164,7 @@ function () { return 'foo'; },
153164
[
154165
'class' => DummyController::class,
155166
'method' => 'staticControllerMethod',
156-
'file' => $r3->getFileName(),
167+
'file' => $r2->getFileName(),
157168
'line' => $r2->getStartLine(),
158169
],
159170
],

0 commit comments

Comments
 (0)