test_php_application.py (1105:f4fa29fb1a2c) test_php_application.py (1165:998b521bbdb8)
1import re
2import unittest
3from unit.applications.lang.php import TestApplicationPHP
4
5class TestPHPApplication(TestApplicationPHP):
1import re
2import unittest
3from unit.applications.lang.php import TestApplicationPHP
4
5class TestPHPApplication(TestApplicationPHP):
6 prerequisites = ['php']
6 prerequisites = {'modules': ['php']}
7
8 def before_disable_functions(self):
9 body = self.get()['body']
10
11 self.assertRegex(body, r'time: \d+', 'disable_functions before time')
12 self.assertRegex(body, r'exec: \/\w+', 'disable_functions before exec')
13
14 def test_php_application_variables(self):

--- 492 unchanged lines hidden ---
7
8 def before_disable_functions(self):
9 body = self.get()['body']
10
11 self.assertRegex(body, r'time: \d+', 'disable_functions before time')
12 self.assertRegex(body, r'exec: \/\w+', 'disable_functions before exec')
13
14 def test_php_application_variables(self):

--- 492 unchanged lines hidden ---