summaryrefslogtreecommitdiffstats
path: root/tests/lib/Http
Commit message (Collapse)AuthorAgeFilesLines
* Mode to modern phpunitRoeland Jago Douma2019-11-272-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-272-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add default timeout to expected request optionsDaniel Kesselberg2019-09-031-34/+19
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Correctly handle emtpy string in proxyuserpwd configScott Shambarger2019-08-111-2/+12
| | | | | | | | | | As documented, the default value for config value proxyuserpwd is ''. However, that value results in the error: "cURL error 5: Unsupported proxy syntax in '@'". This patch handles the values of '' and null (the default in the code) the same for config values proxyuserpwd and proxy. Signed-off-by: Scott Shambarger <devel@shambarger.net>
* Fix testGetProxyUriDaniel Kesselberg2019-04-161-6/+1
| | | | | | | | | | | Changed the implementation for getProxyUri with https://github.com/nextcloud/server/pull/14363/commits/fd1d85365cb1368fa70263fe3ae3b8e59ab56615 If proxy is already null then we don't ask for proxyuserpwd. Test failed because we expected getSystemValue to be called once with proxyuserpwd Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Set User-Agent as header without middlewareDaniel Kesselberg2019-04-162-39/+68
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix HTTP client given options being overriden by default optionsDaniel Calviño Sánchez2018-06-141-0/+127
| | | | | | | | | According to the array_merge documentation, "If the input arrays have the same string keys, then the later value for that key will overwrite the previous one." Thus, the default options must be the first parameter passed to array_merge. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* adjust httpclient to guzzle6Robin Appelman2018-02-093-46/+34
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #2912 from nextcloud/increase-coverage-response.phpLukas Reschke2017-01-021-3/+24
|\ | | | | Add 100% coverage for response.php
| * Add 100% coverage for response.phpLukas Reschke2017-01-021-3/+24
| | | | | | | | | | | | While already at https://github.com/nextcloud/server/pull/2911 I thought I can as well finish that one as well... Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Rebrand to "Nextcloud" and add 100% coverageLukas Reschke2017-01-021-4/+67
|/ | | | | | Noticed while debugging https://github.com/nextcloud/server/issues/2910 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix getMock Http ClientRoeland Jago Douma2016-09-072-4/+7
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-203-0/+176
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader