Skip to content

Commit f4532ef

Browse files
Rename variables
1 parent de95669 commit f4532ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Framework/TestCase.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,20 +1234,20 @@ final protected function registerFailureType(string $classOrInterface): void
12341234
*/
12351235
final protected function runTest(): mixed
12361236
{
1237-
$testArguments = array_merge($this->data, array_values($this->dependencyInput));
1238-
$positionalArgs = [];
1239-
$namedArgs = [];
1237+
$testArguments = array_merge($this->data, array_values($this->dependencyInput));
1238+
$positionalArguments = [];
1239+
$namedArguments = [];
12401240

12411241
foreach ($testArguments as $key => $value) {
12421242
if (is_int($key)) {
1243-
$positionalArgs[] = $value;
1243+
$positionalArguments[] = $value;
12441244
} else {
1245-
$namedArgs[$key] = $value;
1245+
$namedArguments[$key] = $value;
12461246
}
12471247
}
12481248

12491249
try {
1250-
$testResult = $this->{$this->methodName}(...$namedArgs, ...$positionalArgs);
1250+
$testResult = $this->{$this->methodName}(...$namedArguments, ...$positionalArguments);
12511251
} catch (Throwable $exception) {
12521252
if (!$this->shouldExceptionExpectationsBeVerified($exception)) {
12531253
throw $exception;

0 commit comments

Comments
 (0)