test_php_application.py (1453:71af60a59338) test_php_application.py (1467:195fe0a92670)
1import os
2import re
3import shutil
4import unittest
5from unit.applications.lang.php import TestApplicationPHP
6
7class TestPHPApplication(TestApplicationPHP):
1import os
2import re
3import shutil
4import unittest
5from unit.applications.lang.php import TestApplicationPHP
6
7class TestPHPApplication(TestApplicationPHP):
8 prerequisites = {'modules': ['php']}
8 prerequisites = {'modules': {'php': 'all'}}
9
10 def before_disable_functions(self):
11 body = self.get()['body']
12
13 self.assertRegex(body, r'time: \d+', 'disable_functions before time')
14 self.assertRegex(body, r'exec: \/\w+', 'disable_functions before exec')
15
16 def set_opcache(self, app, val):

--- 659 unchanged lines hidden ---
9
10 def before_disable_functions(self):
11 body = self.get()['body']
12
13 self.assertRegex(body, r'time: \d+', 'disable_functions before time')
14 self.assertRegex(body, r'exec: \/\w+', 'disable_functions before exec')
15
16 def set_opcache(self, app, val):

--- 659 unchanged lines hidden ---