Skip to content

Commit 1fad27d

Browse files
committed
Tests/GetMethodParametersTest: normalize data provider arrays
... to improve scannability of the test cases covered. See 225
1 parent 11e56f2 commit 1fad27d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/Core/File/GetMethodParametersTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,15 @@ public function testNoParams($commentString, $targetTokenType=[T_FUNCTION, T_CLO
143143
public static function dataNoParams()
144144
{
145145
return [
146-
'FunctionNoParams' => ['/* testFunctionNoParams */'],
147-
'ClosureNoParams' => ['/* testClosureNoParams */'],
146+
'FunctionNoParams' => [
147+
'commentString' => '/* testFunctionNoParams */',
148+
],
149+
'ClosureNoParams' => [
150+
'commentString' => '/* testClosureNoParams */',
151+
],
148152
'ClosureUseNoParams' => [
149-
'/* testClosureUseNoParams */',
150-
T_USE,
153+
'commentString' => '/* testClosureUseNoParams */',
154+
'targetTokenType' => T_USE,
151155
],
152156
];
153157

0 commit comments

Comments
 (0)