From: Guilhem Moulin <guilhem@debian.org>
Date: Wed, 12 Jan 2022 10:40:13 +0100
Subject: Preserve include_path in test suite.

We want to test with `-d include_path="$(CURDIR):/usr/share/php"` at
dh_auto_test stage, and with `-d include_path="/usr/share/php"` for
autopkgtests.

Origin: Debian
Forwarded: not-needed
---
 tests/tests.inc.php | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tests/tests.inc.php b/tests/tests.inc.php
index 6c895c7..512eb4c 100644
--- a/tests/tests.inc.php
+++ b/tests/tests.inc.php
@@ -21,12 +21,6 @@
  * @since     File available since release 0.1.0
  */
 
-if (php_sapi_name() != 'cli') {
-    // tests with php-cgi need this
-    ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR 
-        . dirname(__FILE__) . '/../');
-}
-
 /**
  * Required classes
  */
