$r3 =
new \
ReflectionClass($controller);
// test name, callable, expected
return [ [ '"Regular" callable',
[$controller, 'regularCallable'
],
[ 'class' => DummyController::
class,
'method' => 'regularCallable',
'file' =>
$r1->
getFileName(),
'line' =>
$r1->
getStartLine(),
],
],
[ 'Closure',
fn () => 'foo',
[ 'class' => __NAMESPACE__.'\{closure}',
'method' => null,
'file' => __FILE__,
'line' => __LINE__ - 5,
],