try to increase test coverage
authorgggeek <giunta.gaetano@gmail.com>
Thu, 24 Nov 2022 11:16:38 +0000 (11:16 +0000)
committergggeek <giunta.gaetano@gmail.com>
Thu, 24 Nov 2022 11:16:38 +0000 (11:16 +0000)
debugger/action.php
debugger/controller.php
debugger/index.php
tests/ci/config/apache_vhost

index 7e35a22..bd192e1 100644 (file)
@@ -9,6 +9,8 @@
  * @todo be smarter in creating client stub for proxy/auth cases: only set appropriate property of client obj
  **/
 
+if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_prepend.php";
+
 header('Content-Type: text/html; charset=utf-8');
 
 ?>
@@ -563,3 +565,4 @@ if ($action) {
 ?>
 </body>
 </html>
+<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_append.php"; ?>
index 1501ac0..5a80090 100644 (file)
@@ -14,6 +14,8 @@
  * @todo if js libs are not available, do not try to load them
  **/
 
+if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_prepend.php";
+
 // Make sure we set the correct charset type for output, so that we can display all characters
 header('Content-Type: text/html; charset=utf-8');
 
@@ -359,3 +361,4 @@ $editorlibs = (defined('JSXMLRPC_PATH') ? JSXMLRPC_PATH : '../..') . '/jsxmlrpc/
 </form>
 </body>
 </html>
+<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_append.php"; ?>
index e7e8bec..18c7418 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+
+if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_prepend.php";
+
 $query = '';
 if (isset($_GET['run'])) {
     $path = parse_url($_GET['run']);
@@ -20,3 +23,4 @@ if (isset($_GET['run'])) {
     <frame name="frmaction" src="action.php" marginwidth="0" marginheight="0" frameborder="0"/>
 </frameset>
 </html>
+<?php if (getenv('TESTMODE') === 'true') require_once __DIR__ . "../demo/server/_append.php"; ?>
index 9852f68..90735f5 100644 (file)
@@ -51,6 +51,7 @@
 
   # Env vars used by the test code, which we get from the environment
   SetEnv HTTPSERVER ${HTTPSERVER}
+  SetEnv TESTMODE true
 
   <Directory "${TESTS_ROOT_DIR}">
     Options FollowSymLinks MultiViews