Tests: initial PHP application tests.

This commit is contained in:
Andrey Zelenkov
2018-05-22 20:20:14 +03:00
parent 7d224bfc9e
commit 3b7238996a
11 changed files with 193 additions and 0 deletions

View File

@@ -382,6 +382,24 @@ class TestUnitApplicationRuby(TestUnitApplicationProto):
}
})
class TestUnitApplicationPHP(TestUnitApplicationProto):
def load(self, script, name='index.php'):
self.conf({
"listeners": {
"*:7080": {
"application": script
}
},
"applications": {
script: {
"type": "php",
"processes": { "spare": 0 },
"root": self.current_dir + '/php/' + script,
"index": name
}
}
})
class TestUnitApplicationPerl(TestUnitApplicationProto):
def load(self, script, name='psgi.pl'):
self.conf({