-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTESTDOX.txt
304 lines (269 loc) · 12.9 KB
/
TESTDOX.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
PHPUnit 3.5.11 by Sebastian Bergmann.
Prack_Arachnid
[x] It should look like a spider
[x] It should be flippable
[x] It should provide crashing for testing purposes
Prack_Auth_Basic
[x] It should challenge correctly when no credentials are specified
[x] It should rechallenge if incorrect credentials are specified
[x] It should return application output if correct credentials are specified
[x] It should return 400 Bad Request if different auth scheme used
[x] It takes realm as an optional constructor arg
Prack_Auth_Digest
[x] It should challenge when no credentials are specified
[x] It should return application output if correct credentials given
[x] It should return application output if correct credentials given hashed passwords
[x] It should rechallenge if incorrect username given
[x] It should rechallenge if incorrect password given
[x] It should rechallenge with stale parameter if nonce is stale
[x] It should return 400 Bad Request if incorrect qop given
[x] It should return 400 Bad Request if incorrect URI given
[x] It should return 400 Bad Request if different auth scheme used
[x] It should not require credentials for unprotected path
[x] It should challenge when no credentials are specified for protected path
[x] It should return application output if correct credentials given for protected path
[x] It should return application output if correct credentials given for POST
[x] It should return application output if correct credentials given for PUT using method override of POST
[x] It takes realm as optional constructor arg
Prack_Builder
[x] It supports mapping
[x] It doesn t dupe env even when mapping
[x] It chains apps by default
[x] It has implicit toMiddlewareApp
[x] It supports callbacks on use
[x] It has explicit toMiddlewareApp
[x] It should initialize apps once
[x] It should throw an exception if the fluent interface is misused
[x] It should throw an exception if the callback provided to a new builder isn t actually callable
[x] It should throw an exception if run is called in the middle of a middleware app specification
[x] It should throw an exception if run is called with other than Prack I MiddlewareApp
Prack_Cascade
[x] It should dispatch onward on 404 by default
[x] It should dispatch onward on whatever is passed
[x] It should return 404 if empty
[x] It should append new app
Prack_CommonLogger
[x] It should log to rack errors by default
[x] It should log to anything with write method
[x] It should log a dash for content length if header is missing
[x] It should log a dash for content length if header is zero
Prack_ConditionalGet
[x] It should set a 304 status and truncate body when If Modified Since hits
[x] It should set a 304 status and truncate body when If None Match hits
[x] It should not affect non GET HEAD requests
Prack_Config
[x] It should accept a callback that modifies the environment
Prack_ContentLength
[x] It should set Content Length on String bodies if none is set
[x] It should set Content Length on Array bodies if none is set
[x] It should not set Content Length on variable length bodies
[x] It should not change Content Length if it is already set
[x] It should not set Content Length on 304 responses
[x] It should not set Content Length when Transfer Encoding is chunked
Prack_ContentType
[x] It should set Content Type to default text html if none is set
[x] It should set Content Type to chosen default if none is set
[x] It should not change Content Type if it is already set
[x] It should detect Content Type case insensitive
Prack_Deflater
[x] It should be able to deflate bodies that respond to each
[x] It should be able to deflate string bodies
[x] It should be able to gzip bodies that respond to each
[x] It should be able to fallback to no deflation
[x] It should be able to skip when there is no response entity body
[x] It should handle the lack of an acceptable encoding
[x] It should handle gzip resource with Last Modified header
[x] It should do nothing when no transform Cache Control directive present
Prack_Directory
[x] It should serve directory indices
[x] It should pass to app if file found
[x] It should serve uri with URL encoded filenames
[x] It should not allow directory traversal
[x] It should 404 if it can t find the file
Prack_ETag
[x] It should set ETag if none is set
[x] It should not change ETag if it is already set
Prack_File
[x] It should serve files
[x] It should set Last Modified header
[x] It should serve files with URL encoded filenames
[x] It should not allow directory traversal
[x] It should not allow directory traversal with encoded periods
[x] It should 404 if it can t find the file
[x] It should detect Prb Exception System
[x] It should return bodies that respond to toPath
[x] It should respond to toPath
Prack_Head
[x] It should pass GET POST PUT DELETE OPTIONS TRACE requests
[x] It should remove body from HEAD requests
Prack_Lint
[x] It should pass valid request
[x] It should notice fatal errors
[x] It should notice environment errors
[x] It should notice input errors
[x] It should notice error errors
[x] It should notice status errors
[x] It should notice header errors
[x] It should notice content type errors
[x] It should notice content length errors
[x] It should notice body errors
[x] It should notice input handling errors
[x] It should notice error handling errors
[x] It should notice HEAD errors
[x] It should pass valid read calls
Prack_Lint_InputWrapper
[x] It should delegate method rewind to the underlying IO object
Prack_Logger
[x] It should log to rack errors
Prack_MethodOverride
[x] It should not affect GET requests
[x] It should modify REQUEST METHOD for POST requests when method parameter is set
[x] It should modify REQUEST METHOD for POST requests when X HTTP Method Override is set
[x] It should not modify REQUEST METHOD if the method is unknown
[x] It should not modify REQUEST METHOD when method is nil
[x] It should store the original REQUEST METHOD prior to overriding
Prack_Mock_Request
[x] It should return a Prack Mock Response
[x] It should be able to only return the environment
[x] It should provide sensible defaults
[x] It should allow GET POST PUT DELETE
[x] It should set content length
[x] It should allow posting
[x] It should use all parts of an URL
[x] It should set SSL port and HTTPS flag on when using https
[x] It should prepend slash to uri path
[x] It should properly convert method name to an uppercase string
[x] It should accept params and build query string for GET requests
[x] It should accept raw input in params for GET requests
[x] It should accept params and build url encoded params for POST requests
[x] It should accept raw input in params for POST requests
[ ] It should accept params and build multipart encoded params for POST requests
[x] It should behave valid according to the Rack spec
Prack_Mock_Response
[x] It should provide access to the HTTP status
[x] It should provide access to the HTTP headers
[x] It should provide access to the HTTP body
[x] It should provide access to the Rack errors
[x] It should optionally make Rack errors fatal
[x] It should optionally make Rack errors fatal part 2
[x] It should throw an exception when an unknown method is called on account of delegation
[x] It should throw an exception if body is neither string nor array nor Prb I Enumerable
[x] It should throw an exception if headers is not an array
Prack_NullLogger
[x] It should act as a noop logger
Prack_Request
[x] It should wrap the rack variables
[x] It should figure out the correct host
[x] It should parse the query string
[x] It should throw an exception if rack input is missing
[x] It should parse POST data when method is POST and no Content Type given
[x] It should parse POST data with explicit content type regardless of method
[x] It should not parse POST data when media type is not form data
[x] It should parse POST data on PUT when media type is form data
[x] It should rewind input after parsing POST data
[x] It should clean up Safari s ajax POST body
[x] It should get value by key from params with getParam
[x] It should set value to key on params with setParam
[x] It should return values for the keys in the order given from valuesAt
[x] It should extract referrer correctly
[x] It should extract user agent correctly
[x] It should cache but invalidates the cache
[x] It should figure out if called via XHR
[x] It should parse cookies
[x] It should parse cookies according to RFC 2109
[x] It should provide setters
[x] It should provide the original env
[x] It should restore the URL
[x] It should restore the full path
[x] It should handle multiple media type parameters
[x] It should parse Accept Encoding correctly
[x] It should provide ip information
[x] It should allow subclass request to be instantiated after parent request
[x] It should allow parent request to be instantiated after subclass request
[x] It should not strip escaped character from parameters when accessed as string
Prack_Response
[x] It should have sensible default values
[x] It can be written to
[x] It can set and read headers
[ ] It can set cookies
[ ] It can set cookies with the same name for multiple domains
[ ] It formats the Cookie expiration date accordingly to RFC 2109
[ ] It can set secure cookies
[ ] It can set http only cookies
[ ] It can delete cookies
[ ] It can delete cookies with the same name from multiple domains
[x] It can do redirects
[x] It has a useful constructor
[x] It has a constructor that can take a callback
[x] It doesn t return invalid responses
[x] It knows if it s empty
[x] It should provide access to the HTTP status
[x] It should provide access to the HTTP headers
[x] It does not add or change Content Length within finish
[x] It updates Content Length when body appended to using write
[x] It should throw an exception when an unknown method is called on account of delegation
[x] It should handle a non standard response body
Prack_RewindableInput
[x] It should be creatable without a string
[x] It should be able to handle read
[x] It should be able to handle read with null
[x] It should be able to handle read with length
[x] It should be able to handle read with length and buffer
[x] It should be able to handle read with null and buffer
[x] It should rewind to the beginning when rewind is called
[x] It should be able to handle gets
[x] It should be able to handle each
[x] It should handle really big strings
[x] It should be possible to call close when no data has been buffered yet
[x] It should be possible to call close multiple times
[x] It should not buffer into a Prb IO Tempfile if no data has been read yet
[x] It should buffer into a Prb IO Tempfile when data has been consumed for the first time
[x] It should close the underlying tempfile upon calling close
Prack_Runtime
[x] It sets X Runtime if none is set
[x] It doesn t set the X Runtime if it is already set
[x] It should allow a suffix to be set
[x] It should allow multiple timers to be set
Prack_Sendfile
[x] It does nothing when no X Sendfile Type header present
[x] It sets X Sendfile response header and discards body
[x] It sets X Lighttpd Send File response header and discards body
[x] It sets X Accel Redirect response header and discards body
[x] It writes to rack error when no X Accel Mapping is specified
[x] It does nothing when body does not respond to toPath
Prack_ShowExceptions
[x] It catches exceptions
[x] It optionally handles PHP errors rethrowing them as exceptions
Prack_Static
[x] It serves files
[x] It 404s if url root is known but it can t find the file
[x] It calls down the chain if url root is not known
Prack_URLMap
[x] It dispatches paths correctly
[x] It dispatches hosts correctly
[x] It should be nestable
[x] It should route root apps correctly
[x] It should not squeeze slashes
Prack_Utils_HeaderHash
[x] It should retain header case
[x] It should check existence of keys case insensitively
[x] It should merge case insensitively
[x] It should overwrite case insensitively and assume the new key s case
[x] It should convert values to Prb String when converting to Prb Hash
[x] It should replace correctly
[x] It should be able to delete the given key case sensitively
[x] It should return the deleted value when delete is called on an existing key
[x] It should return null when delete is called on a non existant key
[x] It should avoid unnecessary object creation if possible
[x] It should create an object with an array otherwise
Prack_Utils
[x] It should escape correctly
[x] It should escape correctly for multibyte characters
[x] It should unescape correctly
[x] It should parse query strings correctly
[x] It should parse nested query strings correctly
[x] It should build query strings correctly
[x] It should build nested query strings correctly
[x] It should figure out which encodings are acceptable
Writing code coverage data to XML file, this may take a moment.
Generating code coverage report, this may take a moment.