10000 Refactored the variable names · lozobojan/laravel-framework@fc32a70 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc32a70

Browse files
author
Bojan Lozo
committed
Refactored the variable names
1 parent ed40f29 commit fc32a70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Database/DatabaseQueryGrammarTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public function testWhereRawReturnsStringWhenExpressionPassed()
2121
$grammar = new Grammar;
2222
$reflection = new ReflectionClass($grammar);
2323
$method = $reflection->getMethod('whereRaw');
24-
$expression = ['sql' => new Expression('select * from "users"')];
24+
$expressionArray = ['sql' => new Expression('select * from "users"')];
2525

26-
$rawQuery = $method->invoke($grammar, $builder, $expression);
26+
$rawQuery = $method->invoke($grammar, $builder, $expressionArray);
2727

2828
$this->assertSame('select * from "users"', $rawQuery);
2929
}
@@ -34,9 +34,9 @@ public function testWhereRawReturnsStringWhenStringPassed()
3434
$grammar = new Grammar;
3535
$reflection = new ReflectionClass($grammar);
3636
$method = $reflection->getMethod('whereRaw');
37-
$array = ['sql' => 'select * from "users"'];
37+
$stringArray = ['sql' => 'select * from "users"'];
3838

39-
$rawQuery = $method->invoke($grammar, $builder, $array);
39+
$rawQuery = $method->invoke($grammar, $builder, $stringArray);
4040

4141
$this->assertSame('select * from "users"', $rawQuery);
4242
}

0 commit comments

Comments
 (0)
0