[TASK] Allow calling tests with phpdbg-SAPI 57/45157/4
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 6 Dec 2015 13:45:51 +0000 (14:45 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Mar 2016 09:44:16 +0000 (10:44 +0100)
Using phpdbg with phpunit it a fast way to create code-coverage-reports.

Change-Id: If3a1b2f957af6937d0191b4d9a1e656aac5373a7
Resolves: #72076
Releases: master
Reviewed-on: https://review.typo3.org/45157
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
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 f7d5787..ef93610 100644 (file)
@@ -19,7 +19,7 @@
  */
 call_user_func(function () {
     // Ensure cli only as security measure
-    if (PHP_SAPI !== 'cli') {
+    if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
         die('This script supports command line usage only. Please check your command.');
     }
 
index ed129a1..9f43e47 100644 (file)
@@ -28,7 +28,7 @@
  */
 call_user_func(function () {
     // Ensure cli only as security measure
-    if (PHP_SAPI !== 'cli') {
+    if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
         die('This script supports command line usage only. Please check your command.');
     }