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 1919final class RendererTest extends TestCase
2020{
2121 /**
22- * Test the AbstractRenderer::setOptions with custom language array.
22+ * Test the AbstractRenderer::setOptions with language array.
2323 *
2424 * @covers \Jfcherng\Diff\Renderer\AbstractRenderer::setOptions
2525 */
26- public function testSetOptionsWithCustomLanguageArray (): void
26+ public function testSetOptionsWithLanguageArray (): void
2727 {
28+ $ testMarker = '_TEST_MARKER_ ' ;
29+
2830 $ languageArrayDefault = (new Language ('eng ' ))->getTranslations ();
29- $ languageArrayTest = ['differences ' => ' _TEST_MARKER_ ' ] + $ languageArrayDefault ;
31+ $ languageArrayTest = ['differences ' => $ testMarker ] + $ languageArrayDefault ;
3032
3133 $ diffResult = DiffHelper::calculate (
3234 'foo ' ,
@@ -37,9 +39,9 @@ public function testSetOptionsWithCustomLanguageArray(): void
3739 );
3840
3941 static ::assertStringContainsString (
40- ' _TEST_MARKER_ ' ,
42+ $ testMarker ,
4143 $ diffResult ,
42- 'Rederer options: custom "language" array should work. '
44+ 'Rederer options: "language" array should work. '
4345 );
4446 }
4547}
You can’t perform that action at this time.
0 commit comments