Index: tests/t3lib/t3lib_pagerenderer_testcase.php =================================================================== --- tests/t3lib/t3lib_pagerenderer_testcase.php (revision 7247) +++ tests/t3lib/t3lib_pagerenderer_testcase.php (working copy) @@ -375,7 +375,7 @@ */ public function testAddCssInlineBlockForceOnTop() { - $expectedReturnValue = '/*general1*/' . chr(10) . 'h1 {margin:20px;}' . chr(10) . '/*general*/' . chr(10) . 'body {margin:20px;}'; + $expectedReturnValue = '/*general1*/' . LF . 'h1 {margin:20px;}' . LF . '/*general*/' . LF . 'body {margin:20px;}'; $this->fixture->addCssInlineBlock('general', 'body {margin:20px;}'); $this->fixture->addCssInlineBlock('general1', 'h1 {margin:20px;}', NULL, TRUE); $out = $this->fixture->render(); @@ -424,7 +424,7 @@ */ public function testLoadExtJS() { - $expectedReturnValue = '' . chr(10) . ''; + $expectedReturnValue = '' . LF . ''; $this->fixture->loadExtJS(TRUE, TRUE, 'jquery'); $out = $this->fixture->render(); @@ -456,7 +456,7 @@ */ public function testEnableExtJsDebug() { - $expectedReturnValue = '' . chr(10) . ''; + $expectedReturnValue = '' . LF . ''; $this->fixture->loadExtJS(TRUE, TRUE, 'jquery'); $this->fixture->enableExtJsDebug(); $out = $this->fixture->render(); Index: tests/t3lib/t3lib_div_testcase.php =================================================================== --- tests/t3lib/t3lib_div_testcase.php (revision 7247) +++ tests/t3lib/t3lib_div_testcase.php (working copy) @@ -92,7 +92,7 @@ * @test */ public function checkTrimExplodeRemovesNewLines() { - $testString = ' a , b , ' . chr(10) . ' ,d ,, e,f,'; + $testString = ' a , b , ' . LF . ' ,d ,, e,f,'; $expectedArray = array('a', 'b', 'd', 'e', 'f'); $actualArray = t3lib_div::trimExplode(',', $testString, true); @@ -820,7 +820,7 @@ public function quoteJSvalueEscapesTab() { $this->assertEquals( "'" . '\t' . "'", - t3lib_div::quoteJSvalue(chr(9)) + t3lib_div::quoteJSvalue(TAB) ); } @@ -830,7 +830,7 @@ public function quoteJSvalueEscapesLinefeed() { $this->assertEquals( "'" . '\n' . "'", - t3lib_div::quoteJSvalue(chr(10)) + t3lib_div::quoteJSvalue(LF) ); } @@ -840,7 +840,7 @@ public function quoteJSvalueEscapesCarriageReturn() { $this->assertEquals( "'" . '\r' . "'", - t3lib_div::quoteJSvalue(chr(13)) + t3lib_div::quoteJSvalue(CR) ); } Index: tests/regularexpression_testcase.php =================================================================== --- tests/regularexpression_testcase.php (revision 7247) +++ tests/regularexpression_testcase.php (working copy) @@ -96,8 +96,8 @@ */ public function split1() { $string = 'test1, test2|test3;test4'; - $array1 = split(',|;|'.chr(10),$string); - $array2 = preg_split('/[,;'.chr(10).']/',$string); + $array1 = split(',|;|'.LF,$string); + $array2 = preg_split('/[,;'.LF.']/',$string); foreach($array1 as $key => $value) { $this->assertTrue( ($array2[$key] === $value)