|
20 | 20 |
|
21 | 21 | declare(strict_types=1); |
22 | 22 |
|
23 | | -namespace PackageFactory\ComponentEngine\Test\Unit\Target\Php\Transpiler\NumberLiteral; |
| 23 | +namespace PackageFactory\ComponentEngine\Test\Unit\Target\Php\Transpiler\IntegerLiteral; |
24 | 24 |
|
25 | 25 | use PackageFactory\ComponentEngine\Parser\Ast\ExpressionNode; |
26 | 26 | use PackageFactory\ComponentEngine\Parser\Ast\IntegerLiteralNode; |
27 | | -use PackageFactory\ComponentEngine\Target\Php\Transpiler\NumberLiteral\NumberLiteralTranspiler; |
| 27 | +use PackageFactory\ComponentEngine\Target\Php\Transpiler\IntegerLiteral\IntegerLiteralTranspiler; |
28 | 28 | use PHPUnit\Framework\TestCase; |
29 | 29 |
|
30 | | -final class NumberLiteralTranspilerTest extends TestCase |
| 30 | +final class IntegerLiteralTranspilerTest extends TestCase |
31 | 31 | { |
32 | 32 | /** |
33 | 33 | * @return array<string,mixed> |
34 | 34 | */ |
35 | | - public static function numberLiteralExamples(): array |
| 35 | + public static function integerLiteralExamples(): array |
36 | 36 | { |
37 | 37 | return [ |
38 | 38 | // Decimal |
@@ -66,20 +66,20 @@ public static function numberLiteralExamples(): array |
66 | 66 | } |
67 | 67 |
|
68 | 68 | /** |
69 | | - * @dataProvider numberLiteralExamples |
| 69 | + * @dataProvider integerLiteralExamples |
70 | 70 | * @test |
71 | | - * @param string $numberLiteralAsString |
| 71 | + * @param string $integerLiteralAsString |
72 | 72 | * @param string $expectedTranspilationResult |
73 | 73 | * @return void |
74 | 74 | */ |
75 | | - public function transpilesIntegerLiteralNodes(string $numberLiteralAsString, string $expectedTranspilationResult): void |
| 75 | + public function transpilesIntegerLiteralNodes(string $integerLiteralAsString, string $expectedTranspilationResult): void |
76 | 76 | { |
77 | | - $numberLiteralTranspiler = new NumberLiteralTranspiler(); |
78 | | - $IntegerLiteralNode = ExpressionNode::fromString($numberLiteralAsString)->root; |
79 | | - assert($IntegerLiteralNode instanceof IntegerLiteralNode); |
| 77 | + $integerLiteralTranspiler = new IntegerLiteralTranspiler(); |
| 78 | + $integerLiteralNode = ExpressionNode::fromString($integerLiteralAsString)->root; |
| 79 | + assert($integerLiteralNode instanceof IntegerLiteralNode); |
80 | 80 |
|
81 | | - $actualTranspilationResult = $numberLiteralTranspiler->transpile( |
82 | | - $IntegerLiteralNode |
| 81 | + $actualTranspilationResult = $integerLiteralTranspiler->transpile( |
| 82 | + $integerLiteralNode |
83 | 83 | ); |
84 | 84 |
|
85 | 85 | $this->assertEquals( |
|
0 commit comments