We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce76ac commit bbf90b5Copy full SHA for bbf90b5
tests/Diff/Renderer/Text/TextRenderersTest.php
@@ -63,6 +63,23 @@ public function testContext(): void
63
$this->assertStringEqualsFile('tests/resources/textContext.txt', $result);
64
}
65
66
+ /**
67
+ * Test the output of the text-context renderer without any change.
68
+ *
69
+ * @covers \jblond\Diff\Renderer\MainRenderer
70
+ */
71
+ public function testContextNoChanges(): void
72
+ {
73
+ $diff = new Diff(
74
+ file_get_contents('tests/resources/a.txt'),
75
+ file_get_contents('tests/resources/a.txt')
76
+ );
77
+
78
+ $renderer = new Diff\Renderer\Text\InlineCli();
79
+ $result = $diff->render($renderer);
80
+ $this->assertEmpty($result);
81
+ }
82
83
/**
84
* Test the output of the text-unified renderer.
85
*
0 commit comments