summaryrefslogtreecommitdiffhomepage
path: root/test/test_php_application.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-03-28 18:43:13 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-03-28 18:43:13 +0300
commit19eba1730a1ca839ed62a37f34c204f580d1b653 (patch)
treee9f54ca64fc7db66e33350826c76ef3814cfa4a0 /test/test_php_application.py
parent06b9a11494561e309114266bfe3bb001352b596c (diff)
downloadunit-19eba1730a1ca839ed62a37f34c204f580d1b653.tar.gz
unit-19eba1730a1ca839ed62a37f34c204f580d1b653.tar.bz2
Tests: unit module refactoring.
Diffstat (limited to 'test/test_php_application.py')
-rw-r--r--test/test_php_application.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/test_php_application.py b/test/test_php_application.py
index 5d2ce118..6c7f7f4b 100644
--- a/test/test_php_application.py
+++ b/test/test_php_application.py
@@ -1,11 +1,10 @@
-import unittest
-import unit
import re
+import unittest
+from unit.applications.lang.php import TestApplicationPHP
-
-class TestUnitPHPApplication(unit.TestUnitApplicationPHP):
+class TestPHPApplication(TestApplicationPHP):
def setUpClass():
- unit.TestUnit().check_modules('php')
+ TestApplicationPHP().check_modules('php')
def before_disable_functions(self):
body = self.get()['body']
@@ -422,4 +421,4 @@ class TestUnitPHPApplication(unit.TestUnitApplicationPHP):
if __name__ == '__main__':
- TestUnitPHPApplication.main()
+ TestPHPApplication.main()