Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 20 lines (15 sloc) 0.575 kB
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
1 from base import *
2
45cc694 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2762 5dc97367-9…
alobbs authored
3 DIR = "php1"
b6c69ad @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@269 5dc97367-97…
alobbs authored
4
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
5 class Test (TestBase):
6 def __init__ (self):
bc8d926 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2179 5dc97367-9…
alobbs authored
7 TestBase.__init__ (self, __file__)
45cc694 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2762 5dc97367-9…
alobbs authored
8 self.name = "PHP simple"
9 self.request = "GET /%s/simple.php HTTP/1.0\r\n" % (DIR)
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
10 self.expected_error = 200
11 self.expected_content = "This is PHP"
12
13 def Prepare (self, www):
45cc694 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2762 5dc97367-9…
alobbs authored
14 d = self.Mkdir (www, DIR)
15 self.WriteFile (d, "simple.php", 0444,
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
16 "<?php echo 'This'.' is '.'PHP' ?>")
17
18 def Precondition (self):
327c12c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@491 5dc97367-97…
alobbs authored
19 return os.path.exists (look_for_php())
Something went wrong with that request. Please try again.