Skip to content

Commit 53ac441

Browse files
committed
nits: tests
Signed-off-by: Jack Cherng <[email protected]>
1 parent d1a7479 commit 53ac441

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/Renderer/RendererTest.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@
1919
final 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
}

0 commit comments

Comments
 (0)