diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-05-22 20:20:14 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-05-22 20:20:14 +0300 |
commit | 3b7238996ad68f3c56a031e72e0b2f9aa0c8662c (patch) | |
tree | b491b30834997e406d6139aaf39d7bc6140d7f30 /test/unit.py | |
parent | 7d224bfc9e39cb7885885bb554ca21ab26f5ddd0 (diff) | |
download | unit-3b7238996ad68f3c56a031e72e0b2f9aa0c8662c.tar.gz unit-3b7238996ad68f3c56a031e72e0b2f9aa0c8662c.tar.bz2 |
Tests: initial PHP application tests.
Diffstat (limited to 'test/unit.py')
-rw-r--r-- | test/unit.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/unit.py b/test/unit.py index e1bf2374..2f187d91 100644 --- a/test/unit.py +++ b/test/unit.py @@ -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({ |