Tests: added PATH_INFO variable test.

This commit is contained in:
Andrey Zelenkov
2019-07-08 19:23:33 +03:00
parent cc578b2e63
commit 4ea7d71405
2 changed files with 4 additions and 1 deletions

View File

@@ -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',