From 4ea7d714056f63486a4c3a7d0953e513e898b4ba Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 8 Jul 2019 19:23:33 +0300 Subject: Tests: added PATH_INFO variable test. --- test/test_php_application.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/test_php_application.py') diff --git a/test/test_php_application.py b/test/test_php_application.py index bf0d3bd1..ad520596 100644 --- a/test/test_php_application.py +++ b/test/test_php_application.py @@ -24,6 +24,7 @@ class TestPHPApplication(TestApplicationPHP): 'Connection': 'close', }, body=body, + url='/index.php/blah?var=val' ) self.assertEqual(resp['status'], 200, 'status') @@ -54,7 +55,8 @@ class TestPHPApplication(TestApplicationPHP): 'Connection': 'close', 'Content-Length': str(len(body)), 'Request-Method': 'POST', - 'Request-Uri': '/', + 'Path-Info': '/blah', + 'Request-Uri': '/index.php/blah?var=val', 'Http-Host': 'localhost', 'Server-Protocol': 'HTTP/1.1', 'Custom-Header': 'blah', -- cgit