Tests: chdir() and open() for PHP module.
These tests ensure optimizations in the chdir calls don't break SAPI semantics.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user