Skip to content
This repository
Browse code

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

…ifferences
  • Loading branch information...
commit ff63ba97fb3d9d777216470667ce00d4b4780219 1 parent b559b9b
Sean Harvey authored February 25, 2011

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  tests/i18n/i18nTest.php
8  tests/i18n/i18nTest.php
@@ -176,11 +176,11 @@ function testTemplateTranslation() {
176 176
 		$viewer = new SSViewer('i18nTestModule');
177 177
 		$parsedHtml = $viewer->process(new ArrayData(array('TestProperty' => 'TestPropertyValue')));
178 178
 		$this->assertContains(
179  
-			"Layout Template\n",
  179
+			sprintf("Layout Template%s", PHP_EOL),
180 180
 			$parsedHtml
181 181
 		);
182 182
 		$this->assertContains(
183  
-			"Layout Template no namespace\n",
  183
+			sprintf("Layout Template no namespace%s", PHP_EOL),
184 184
 			$parsedHtml
185 185
 		);
186 186
 		
@@ -197,11 +197,11 @@ function testTemplateTranslation() {
197 197
 		$viewer = new SSViewer('i18nTestModule');
198 198
 		$parsedHtml = $viewer->process(new ArrayData(array('TestProperty' => 'TestPropertyValue')));
199 199
 		$this->assertContains(
200  
-			"TRANS Main Template\n",
  200
+			sprintf("TRANS Main Template%s", PHP_EOL),
201 201
 			$parsedHtml
202 202
 		);
203 203
 		$this->assertContains(
204  
-			"TRANS Layout Template\n",
  204
+			sprintf("TRANS Layout Template%s", PHP_EOL),
205 205
 			$parsedHtml
206 206
 		);
207 207
 		$this->assertContains(

0 notes on commit ff63ba9

Please sign in to comment.
Something went wrong with that request. Please try again.