File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 19
19
final class RendererTest extends TestCase
20
20
{
21
21
/**
22
- * Test the AbstractRenderer::setOptions with custom language array.
22
+ * Test the AbstractRenderer::setOptions with language array.
23
23
*
24
24
* @covers \Jfcherng\Diff\Renderer\AbstractRenderer::setOptions
25
25
*/
26
- public function testSetOptionsWithCustomLanguageArray (): void
26
+ public function testSetOptionsWithLanguageArray (): void
27
27
{
28
+ $ testMarker = '_TEST_MARKER_ ' ;
29
+
28
30
$ languageArrayDefault = (new Language ('eng ' ))->getTranslations ();
29
- $ languageArrayTest = ['differences ' => ' _TEST_MARKER_ ' ] + $ languageArrayDefault ;
31
+ $ languageArrayTest = ['differences ' => $ testMarker ] + $ languageArrayDefault ;
30
32
31
33
$ diffResult = DiffHelper::calculate (
32
34
'foo ' ,
@@ -37,9 +39,9 @@ public function testSetOptionsWithCustomLanguageArray(): void
37
39
);
38
40
39
41
static ::assertStringContainsString (
40
- ' _TEST_MARKER_ ' ,
42
+ $ testMarker ,
41
43
$ diffResult ,
42
- 'Rederer options: custom "language" array should work. '
44
+ 'Rederer options: "language" array should work. '
43
45
);
44
46
}
45
47
}
You can’t perform that action at this time.
0 commit comments