[BUGFIX] Remove possibly undefined constant from test bootstraps 39/53239/2
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 17 Jun 2017 13:09:53 +0000 (15:09 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 17 Jun 2017 13:35:14 +0000 (15:35 +0200)
The constant LF might not be defined in functional and unit test
bootstrap by the time the script terminates with an error message.

Replacing the usage of this constant with the native value for a
linebreak causes the same result for the error message, but prevents
the additional and confusing messages about the not existing constant.

Change-Id: I66bd2092875e33fa8bb93a2a57c54daeaeb15ecf
Resolves: #81599
Releases: 7.6
Reviewed-on: https://review.typo3.org/53239
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Build/FunctionalTestsBootstrap.php
typo3/sysext/core/Build/UnitTestsBootstrap.php

index 7d21e78..5a26a1d 100644 (file)
@@ -144,7 +144,7 @@ class FunctionalTestsBootstrap
      */
     protected function exitWithMessage($message)
     {
-        echo $message . LF;
+        echo $message . chr(10);
         exit(1);
     }
 }
index d173db4..4ec5fe4 100644 (file)
@@ -235,7 +235,7 @@ class UnitTestsBootstrap
      */
     protected function exitWithMessage($message)
     {
-        echo $message . LF;
+        echo $message . chr(10);
         exit(1);
     }
 }