Skip to content

Commit 01a1946

Browse files
committed
updated differ
1 parent a6c3bcc commit 01a1946

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Differ.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function run(): void
7272
$this->nextDCICommand->execute($this->initFICommand);
7373
}
7474

75-
public function gendiff(
75+
public function genDiff(
7676
string $pathToFile1,
7777
string $pathToFile2,
7878
string $format = 'stylish'

tests/GendiffConsoleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#[CoversClass(DisplayCommand::class)]
3333
#[CoversClass(Differ::class)]
3434
#[CoversMethod(Differ::class, "run")]
35+
#[CoversMethod(Differ::class, "genDiff")]
3536
class GendiffConsoleTest extends TestCase
3637
{
3738
public static function getTestData(): array
@@ -95,7 +96,7 @@ public function testAPIDiffer($formatter, $filePath)
9596
__DIR__ . "/../fixtures/file2.json"
9697
);
9798
} else {
98-
$outputBuffer = $differ->gendiff(
99+
$outputBuffer = $differ->genDiff(
99100
__DIR__ . "/../fixtures/file1.json",
100101
__DIR__ . "/../fixtures/file2.json",
101102
$formatter

0 commit comments

Comments
 (0)