[BUGFIX] Ensure correct line ending in fluid Unit Tests 91/46591/2
authorNicole Cordes <typo3@cordes.co>
Thu, 11 Feb 2016 12:51:09 +0000 (13:51 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 11 Feb 2016 21:58:18 +0000 (22:58 +0100)
As the TYPO3\CMS\Core\Cache\Frontend\PhpFrontend uses the constant LF
for its data storing the Unit Tests in
TYPO3\CMS\Fluid\Tests\Unit\Core\Cache\FluidTemplateCacheTest have to use
the same constant for comparison.

Resolves: #73237
Releases: master
Change-Id: I2e66ec7726124746a0156d15d4bb462793176d97
Reviewed-on: https://review.typo3.org/46591
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Daniel Maier <dani-maier@gmx.de>
Tested-by: Daniel Maier <dani-maier@gmx.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/fluid/Tests/Unit/Core/Cache/FluidTemplateCacheTest.php

index fda40c5..7318ff3 100644 (file)
@@ -51,7 +51,7 @@ class FluidTemplateCacheTest extends UnitTestCase
         $backend = $this->getMock(PhpCapableBackendInterface::class);
         $backend->expects($this->once())->method('set')->with(
             'test',
-            '<?php' . PHP_EOL . 'test' . PHP_EOL . '#',
+            '<?php' . LF . 'test' . LF . '#',
             array('foobar'),
             $this->anything()
         );
@@ -67,11 +67,11 @@ class FluidTemplateCacheTest extends UnitTestCase
         $backend = $this->getMock(PhpCapableBackendInterface::class);
         $backend->expects($this->once())->method('set')->with(
             'test',
-            '<?php' . PHP_EOL . 'test' . PHP_EOL . '#',
+            '<?php' . LF . 'test' . LF . '#',
             array('foobar'),
             $this->anything()
         );
         $instance = new FluidTemplateCache('dummy', $backend);
-        $instance->set('test', '<?php' . PHP_EOL . 'test', array('foobar'));
+        $instance->set('test', '<?php' . LF . 'test', array('foobar'));
     }
 }