diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-05-07 16:55:42 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-05-07 16:55:42 +0100 |
commit | b9e8d8073ce9da9c1019ca885d99bca7ff727ba1 (patch) | |
tree | d2eae7ae2d1b063e8d1578479aa52e21446febab /test/test_php_application.py | |
parent | b0e32bc015f8eb146e745b7184549e15c6657f85 (diff) | |
download | unit-b9e8d8073ce9da9c1019ca885d99bca7ff727ba1.tar.gz unit-b9e8d8073ce9da9c1019ca885d99bca7ff727ba1.tar.bz2 |
Tests: PHP test with getting variable before the script is loaded.
Diffstat (limited to '')
-rw-r--r-- | test/test_php_application.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/test_php_application.py b/test/test_php_application.py index 350ac0d0..66e2ef7d 100644 --- a/test/test_php_application.py +++ b/test/test_php_application.py @@ -98,9 +98,14 @@ class TestPHPApplication(TestApplicationPHP): def test_php_application_fastcgi_finish_request(self, unit_pid): self.load('fastcgi_finish_request') + assert 'success' in self.conf( + {"admin": {"auto_globals_jit": "1"}}, + 'applications/fastcgi_finish_request/options', + ) + assert self.get()['body'] == '0123' - os.kill(unit_pid, signal.SIGUSR1); + os.kill(unit_pid, signal.SIGUSR1) errs = self.findall(r'Error in fastcgi_finish_request') @@ -109,11 +114,16 @@ class TestPHPApplication(TestApplicationPHP): def test_php_application_fastcgi_finish_request_2(self, unit_pid): self.load('fastcgi_finish_request') + assert 'success' in self.conf( + {"admin": {"auto_globals_jit": "1"}}, + 'applications/fastcgi_finish_request/options', + ) + resp = self.get(url='/?skip') assert resp['status'] == 200 assert resp['body'] == '' - os.kill(unit_pid, signal.SIGUSR1); + os.kill(unit_pid, signal.SIGUSR1) errs = self.findall(r'Error in fastcgi_finish_request') |