Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Fixed broken i18nTest on Windows because of newline character d…

…ifferences
  • Loading branch information...
commit ff63ba97fb3d9d777216470667ce00d4b4780219 1 parent b559b9b
@halkyon halkyon authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/i18n/i18nTest.php
View
8 tests/i18n/i18nTest.php
@@ -176,11 +176,11 @@ function testTemplateTranslation() {
$viewer = new SSViewer('i18nTestModule');
$parsedHtml = $viewer->process(new ArrayData(array('TestProperty' => 'TestPropertyValue')));
$this->assertContains(
- "Layout Template\n",
+ sprintf("Layout Template%s", PHP_EOL),
$parsedHtml
);
$this->assertContains(
- "Layout Template no namespace\n",
+ sprintf("Layout Template no namespace%s", PHP_EOL),
$parsedHtml
);
@@ -197,11 +197,11 @@ function testTemplateTranslation() {
$viewer = new SSViewer('i18nTestModule');
$parsedHtml = $viewer->process(new ArrayData(array('TestProperty' => 'TestPropertyValue')));
$this->assertContains(
- "TRANS Main Template\n",
+ sprintf("TRANS Main Template%s", PHP_EOL),
$parsedHtml
);
$this->assertContains(
- "TRANS Layout Template\n",
+ sprintf("TRANS Layout Template%s", PHP_EOL),
$parsedHtml
);
$this->assertContains(
Please sign in to comment.
Something went wrong with that request. Please try again.