Commit Graph

16 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
290b183d03 Fix errors detected by PHP_CodeSniffer
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-04-15 00:05:19 -03:00
Shreyas Sinha
1dfce55965 Incorrect protocol number at 401/303 headers (#12920)
Shared code for handling HTTP response codes and correctly
set it based on PHP SAPI.

Signed-off-by: Shreyas Sinha <shreyas.sinha14@gmail.com>
2017-02-14 13:20:13 +01:00
Michal Čihař
815149c3f9 Share more of response mocking
Issue #12079

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-18 16:32:19 +01:00
Michal Čihař
028f32da5f Share more code for reponse mocking
Issue #12079

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-18 16:14:25 +01:00
Michal Čihař
ce9f84e477 Use shared mock for response without any header
Fixes #12079

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-18 16:05:32 +01:00
Vinicius Dias
410fa2a85b $param was not being used in mockResponse()
There was a parameter ($param) not being used in the mockResponse() method.
2017-01-09 10:04:00 -02:00
Michal Čihař
3c2867c02a Use shared response mock in cookie auth tests
Issue #12079

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-08 10:51:25 +01:00
Michal Čihař
234f93efff Various coding style and visibility fixes for #12852
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-08 10:51:25 +01:00
osaid
fd6a02b215 moved tearDown method to PMATestCase
Signed-off-by: osaid <osaid.nasir@gmail.com>
2017-01-08 13:03:28 +05:30
osaid
01b3509d94 remove tabs
Signed-off-by: osaid <osaid.nasir@gmail.com>
2017-01-07 16:37:17 +05:30
osaid
887b661690 added tearDown method for header tests
Signed-off-by: osaid <osaid.nasir@gmail.com>
2017-01-07 16:11:32 +05:30
osaid
02125d2fc9 restoring instance after mock object is used
Signed-off-by: osaid <osaid.nasir@gmail.com>
2017-01-06 14:12:44 +05:30
osaid
149916cbda making method non-static 2017-01-05 21:42:48 +05:30
osaid
2a62427b67 added mockResponse function for sharing code and used it in headerlocationtest Signed-Off-By: Osaid <osaid.nasir@gmail.com> 2017-01-03 22:23:40 +05:30
Madhura Jayaratne
4a8320aac4 Add doc comments
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2016-02-19 22:56:30 +11:00
Madhura Jayaratne
e88dcc15bb Introduce base test case. Reset configuration values to defaults for each test case
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-12-17 19:22:10 +11:00