Tobias Nyholm
291bf2a676
Fixed native_function_invocation CS ( #2444 )
2019-12-11 22:15:25 +01:00
Tobias Nyholm
6d6d4563e8
Remove UriTemplate ( #2440 )
2019-12-08 21:04:12 +01:00
Tobias Nyholm
4723e9dfb8
Added integration tests for PSR-18 ( #2437 )
2019-12-08 20:55:00 +01:00
Kevin Laude
b98b025d47
Fix describe_type()'s test when Xdebug is loaded ( #1843 )
...
* Fix describe_type() test when Xdebug is loaded
Xdebug's overloaded var_dump() may generate different output from the
built-in var_dump(), causing this test to fail. Temporarily disable
Xdebug's var_dump() during this test.
* try/finally
2019-12-08 20:44:14 +01:00
Tobias Nyholm
f83107032a
CS fixes (phpdoc_align) ( #2435 )
...
* CS fixes
* no_superfluous_phodoc_tags
* no_blank_lines_after_phpdoc
* phpdoc_trim_consecutive_blank_line_separation
* phpdoc_trim
* phpdoc_var_without_name
* phpdoc_scalar
* phpdoc_types
* phpdoc_single_line_var_spacing
* phpdoc_separation
* Updated PHPStan baseline
2019-12-08 17:56:15 +01:00
Jason Moore
4a106300e0
Remove unused exception class. Closes #2102 ( #2162 )
...
* Remove unused exception class. Closes #2102
* Removed PHPStan rules
2019-12-08 17:02:23 +01:00
Mponos George
02f96e2128
Remove deprecation of phpunit for assertContains ( #2436 )
...
* Remove deprecation of phpunit for assertContains
* Revert
* Revert
2019-12-08 16:51:18 +01:00
Mponos George
7123422ea5
Phpunit 8 deprecated expectException annotations ( #2431 )
...
* Phpunit 8 deprecated expectException annotations
* Fix failing tests
* Try to fix the failing tests
* Fix the tests second try
2019-12-08 16:23:23 +01:00
Mponos George
652cf9a3ce
Remove response body summary from exception ( #2425 )
2019-12-08 16:00:08 +01:00
Mponos George
7b0e70fda0
Fix covers annotations ( #2428 )
2019-12-08 15:58:53 +01:00
Tobias Nyholm
e5d0eb2fc5
Implement PSR-18 ( #2421 )
...
* Implement PSR-18
* CS
* Remove snapshot
2019-12-08 14:23:48 +01:00
Alexey Shokov
9d4716949a
Internationalized domain name (IDN) support ( #2286 )
...
* Internationalized domain name (IDN) support
* Documentation fix
* Tests for base_uri
* PHPStan and CI fixes
* cs
2019-12-07 10:28:27 +01:00
Diego Luces
1293c1b6c9
Fix RetryMiddleware default exponential delay ( #2132 )
...
* Fix RetryMiddleware::exponentialDelay by making it return milliseconds
RetryMiddleware::exponentialDelay was being used as-is to set the delay option in the retry middleware. However, the option requires milliseconds and this method was returning seconds.
* Fix RetryMiddleware::exponentialDelay by making it return milliseconds
RetryMiddleware::exponentialDelay was being used as-is to set the delay option in the retry middleware. However, the option requires milliseconds and this method was returning seconds.
* Fix exponentialDelay int casting
* Added comment
2019-12-07 09:54:01 +01:00
Šimon Podlipský
df36d8dae3
Use PHPUnit static assertions ( #2314 )
...
* Call PHPUnit assertions property
* Fix CS
2019-10-30 13:22:04 +02:00
Tobias Nyholm
411b0764b8
Fixed CS in tests ( #2385 )
2019-10-30 12:56:22 +02:00
Andrew Clark
ac157c57f6
[CurlFactory] Prevent undefined offset when using array for ssl_key options ( #2348 )
...
* Test & changes to CurlFactory
* Code style and cleanup
* Restore import order
* Bugfix
2019-10-24 15:37:04 +03:00
Mponos George
11337163c1
Missing docblocks affecting code ( #2223 )
...
* Missing docblocks affecting code
* Reverted docblocks
* Revert instance check
2019-10-23 18:14:36 +02:00
Luis Jimenez
6a946467b3
MockHandler - Add support to reset internal queue ( #2143 )
2019-10-23 18:14:19 +02:00
Orian de Wit
33bee79d0c
Update Client.php to handle null headers ( #2259 )
...
* Update Client.php
A post with options `['json' => $data, 'headers' => null]` gives a `Undefined index: _conditional` in the `Psr7\_caseless_remove()` call on line 326.
When the headers key exists but is null, it seems more logical to set `$defaults['_conditional']` to an empty array than null.
* added test
2019-10-23 18:13:55 +02:00
Alexey Shokov
8f10d0ea90
Custom option for cURL multi handler ( #2287 )
...
* Custom option for cURL multi handler
* Assertion fix
2019-10-23 18:13:30 +02:00
voprak
cbc63fb37f
Add ability to test transfer time ( #2362 )
...
* Add ability to test transfer time
2019-10-18 11:22:48 +02:00
Márk Sági-Kazár
e5887dd9ed
Merge pull request #2299 from phansys/issue_2298
...
[tests] Add test covering client responses
2019-10-14 11:21:43 +02:00
Bas Peeters
7a97aae678
Clear userinfo with empty user according to PSR7
2019-08-13 12:03:22 +02:00
Bas Peeters
da21d40ad9
Add cookie as a string in middleware test
2019-08-13 11:45:39 +02:00
Bas Peeters
e26a75f024
Factor http code bounds into exception test
2019-08-13 11:45:29 +02:00
Javier Spagnoletti
85fa33a734
[tests] Add test covering client responses
2019-05-08 11:34:12 -03:00
Marcel Hernandez
40aa8b1642
test presence of appconnect_time key in curl stats array
2019-04-15 09:08:57 +02:00
Dzhuneyt
3b0452a3a0
Replace microtime() usages with hrtime() ( #2242 )
...
* Replace microtime() usages with hrtime()
* Replace microtime() usages with hrtime()
* Wrongly used 1e9 instead of 1e7
* Replaced 1e7 with 1e9
* Marked function as @internal
* Internal function name prefixed with underscore
2019-04-15 08:36:28 +02:00
Erik Booij
136239dffd
Fix unit test that is breaking because of hardcoded cookie expiration date
2019-04-08 09:33:58 +02:00
Márk Sági-Kazár
c5da4c3128
Merge pull request #2040 from brbrowning21/eval-test-server
...
Use safer JSON.parse() instead of eval()
2018-12-21 17:46:01 +01:00
Márk Sági-Kazár
330dc56732
Merge pull request #2161 from casconed/cleanup-environment-variables
...
Cleanup environment variables
2018-12-21 17:43:56 +01:00
Rafael K
d4141ca962
Prevent Exception ( #2212 )
...
Add test for checking curl release
2018-12-21 17:15:38 +01:00
Mponos George
b309ed9ad4
Use test logger of PSR ( #2215 )
2018-11-21 18:36:52 +01:00
Gabriel Caruso
7f82c29209
Use more accurate assertion while checking for non-existent array's key
2018-11-16 10:40:54 -02:00
Mponos George
cf86e51dd6
Remove assertEquals in favor of assertSame ( #2188 )
2018-11-01 22:47:08 +01:00
George Mponos
ffc61ebd8d
Fix wrong namespaces
2018-10-31 22:40:38 +02:00
Jason Moore
5a3f1414e2
Add support for documented environment variable. Closes #2136
2018-10-04 08:59:48 -05:00
Jason Moore
cc362add6b
Add annotations so tests aren't marked as risky
2018-10-03 14:25:28 -05:00
Jason Moore
edd4607e02
Add assertions
2018-10-03 14:24:58 -05:00
Jason Moore
6e0945c536
Change provider method prefix to provider
2018-10-03 14:23:23 -05:00
SpacePossum
5c7a5c524e
RequestException - check if readable before access ( #2081 )
...
* check if readable before access
* Add unit tests for RequestException::getResponseBodySummary
* use real object in test
* update test for older PHP version support
* remove no longer used imports
* Update RequestExceptionTest.php
2018-08-08 06:37:00 +02:00
Márk Sági-Kazár
0773d442aa
Merge pull request #2064 from AlessandroMinoccheri/split_in_many_lines
...
split some long lines in many
2018-04-23 15:18:18 +02:00
Alessandro Minoccheri
2e7aec0b44
split some long lines in many
2018-04-23 14:07:01 +02:00
Gabriel Caruso
0d7c63a663
Use assertRegExp
...
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
2018-04-23 02:33:37 -03:00
Dariusz Ruminski
79294ad0a6
DX: small CS fixes
2018-04-08 21:15:02 +02:00
Benjamin Browning
ce35ac544d
Use safer JSON.parse() instead of eval()
...
Closes #2004
2018-04-04 23:09:53 -04:00
Márk Sági-Kazár
6da464c377
Merge pull request #1999 from curtisdf/malformed-domain
...
Error with malformed domain that contains a "/" character
2018-03-26 13:36:33 +02:00
Márk Sági-Kazár
8ffb1d2486
Merge pull request #1998 from curtisdf/master
...
A better fix for #1894 - "Undefined offset: 0"
2018-03-26 13:35:14 +02:00
David Schoen
2a7d3a4ed2
Fix bug parsing 0 epoch expiry times
...
As per https://github.com/guzzle/guzzle/issues/1952 expiry times
specified as "Thu, 01 Jan 1970 00:00:00 GMT" should be treated as
expired, but they weren't because 0 was implicitly casting to a bool in
SetCookie::isExpired().
2018-02-16 21:23:26 +11:00
Curtis Farnham
e6f837a9a8
Error with malformed domain that contains a "/"
2018-01-31 12:46:25 -08:00