summaryrefslogtreecommitdiffhomepage
path: root/test/unit/applications/lang
diff options
context:
space:
mode:
authorTiago Natel de Moura <t.nateldemoura@f5.com>2020-03-03 18:53:26 +0000
committerTiago Natel de Moura <t.nateldemoura@f5.com>2020-03-03 18:53:26 +0000
commit80763b3e64cfeae358c521fa563cc9eaa48f4ea2 (patch)
tree7d0ae8068c5eddbfcbf52c7998677db0e8b5de27 /test/unit/applications/lang
parent293b0da5201917dcecc09340e8e33eaff954b326 (diff)
downloadunit-80763b3e64cfeae358c521fa563cc9eaa48f4ea2.tar.gz
unit-80763b3e64cfeae358c521fa563cc9eaa48f4ea2.tar.bz2
Tests: chdir() and open() for PHP module.
These tests ensure optimizations in the chdir calls don't break SAPI semantics.
Diffstat (limited to '')
-rw-r--r--test/unit/applications/lang/php.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/applications/lang/php.py b/test/unit/applications/lang/php.py
index 6b1677e6..e8c70c62 100644
--- a/test/unit/applications/lang/php.py
+++ b/test/unit/applications/lang/php.py
@@ -4,7 +4,7 @@ from unit.applications.proto import TestApplicationProto
class TestApplicationPHP(TestApplicationProto):
application_type = "php"
- def load(self, script, name='index.php', **kwargs):
+ def load(self, script, index='index.php', **kwargs):
script_path = self.current_dir + '/php/' + script
self._load_conf(
@@ -16,7 +16,7 @@ class TestApplicationPHP(TestApplicationProto):
"processes": {"spare": 0},
"root": script_path,
"working_directory": script_path,
- "index": name,
+ "index": index,
}
},
},