1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 18:13:00 +01:00

44 Commits

Author SHA1 Message Date
Erik Booij
136239dffd Fix unit test that is breaking because of hardcoded cookie expiration date 2019-04-08 09:33:58 +02:00
Mponos George
cf86e51dd6 Remove assertEquals in favor of assertSame (#2188) 2018-11-01 22:47:08 +01:00
Jason Moore
6e0945c536 Change provider method prefix to provider 2018-10-03 14:23:23 -05:00
Alessandro Minoccheri
2e7aec0b44 split some long lines in many 2018-04-23 14:07:01 +02:00
Dariusz Ruminski
79294ad0a6
DX: small CS fixes 2018-04-08 21:15:02 +02: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
Curtis Farnham
64976eb401 Fix for #1894 - "Undefined offset: 0" 2018-01-31 11:44:37 -08:00
Gabriel Caruso
38d61ba642 Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 2018-01-23 16:01:32 -02:00
Gabriel Caruso
501c7c2994 Refactored tests (#1970) 2017-12-04 08:55:06 +01:00
Gabriel Caruso
83974b7f12 Refactoring tests (#1964) 2017-11-29 07:48:19 +01:00
Dori
065287bc14 Test cookie handling when cookie path is empty. (#1778)
* Test cookie handling when cookie path is empty.

* Fix cookie path when attribute sent by server is empty or not start with a slash char.
2017-06-10 16:17:14 +02:00
Pavel Batanov
703160e28b Add PHP 7.2 testing (#1811)
* Update travis to test against php 7.2

* Add tests for countables

* Update dev phpunit to ^5.0

* Fix tcp proxy URL
2017-05-01 11:12:41 +02:00
Dylan McDonald
b517bd912a Added convenience method to access a cookie by name (#1318)
* Added convenience method to access a cookie by name

* updated pull request against newest version

* added default null edge case 👍 to @Nyholm

* added null test to Cookie Jar Test

* added better null protection

* disallowed null names in getCookieByName

* changed null to empty string
2017-04-07 22:03:48 +02:00
Dennis Væversted
9a6691fb90 Do not attempt to escape cookie values.
Trust that the cookie value sent by the server is escaped accordingly,
and do not attempt to escape the cookie by adding quotes around the value.
2016-02-17 22:02:27 +01:00
Michael Dowling
a799bb6f0a PHP 7 fixes 2016-01-30 16:01:12 -08:00
stefan.r
aef23611dd If the name string is empty but not 0, ignore the set-cookie-string entirely 2015-09-06 18:03:37 +02:00
Michael Dowling
33af93ab4b Merge pull request #1232 from spyric/bad_cookie
Fix incorrect equal sign in cookie value
2015-09-01 16:14:13 -07:00
Gintautas Miselis
594e39fd8c Added test for cookie name with square brackets 2015-09-01 21:59:56 +01:00
Gintautas Miselis
72e1d73c68 Allow square brackets in cookie name #1205 2015-09-01 21:56:34 +01:00
Егор Таланцев
9a161432e4 + fails test 2015-08-28 14:36:24 +05:00
Michael Dowling
1c580201c3 Merge pull request #1195 from kmorozov/SessionCookieFix
Session cookie fix
2015-08-15 12:52:06 -07:00
Kirill
122ec49147 forgot to remove unneeded test. 2015-08-12 09:49:44 -04:00
Kirill
80e71a2429 fixed if -> ( spacing. Also added data-providers for the new tests. 2015-08-12 09:48:58 -04:00
Kirill
4880875daf forgot to remove an assert that I wrapped in if/else. 2015-07-30 10:11:31 -04:00
Kirill
e38c85f3d7 Forgot $this in method calls. 2015-07-30 09:59:59 -04:00
Kirill
81721b0f52 fixed spacing, line width and formatting. Added tests to check on the session cookie flag. 2015-07-30 09:16:20 -04:00
Michael Dowling
6692db3cda Fixing cookie path matching. Closes #1129 2015-07-29 21:48:33 -07:00
Michael Dowling
7420318951 Do not strip quotes when parsing cookies. Closes #1172 2015-07-27 22:23:47 -07:00
Sági-Kazár Márk
820de92dd7 Fix exception tests 2015-06-24 18:11:32 +02:00
Michael Dowling
fd095f0f68 PSR-7 updates 2015-04-19 20:39:53 -07:00
Michael Dowling
fd52370dd7 Updating for PSR7 changes and promise changes 2015-03-15 23:08:26 -07:00
Michael Dowling
1a9ad6b553 WIP refactor for PSR-7 2015-02-25 14:50:44 -08:00
Michael Dowling
fa8f06609a Merge branch 'ring' into 5-0
Conflicts:
	src/Adapter/Curl/CurlAdapter.php
	src/Adapter/Curl/CurlFactory.php
	src/Adapter/Curl/MultiAdapter.php
	src/Adapter/MockAdapter.php
	src/Adapter/StreamAdapter.php
	src/Event/HeadersEvent.php
	tests/Adapter/Curl/CurlAdapterTest.php
	tests/Adapter/Curl/CurlFactoryTest.php
	tests/Adapter/Curl/MultiAdapterTest.php
	tests/Adapter/Curl/RequestMediatorTest.php
	tests/Adapter/FakeParallelAdapterTest.php
	tests/Adapter/MockAdapterTest.php
	tests/Adapter/StreamAdapterTest.php
	tests/Adapter/StreamingProxyAdapterTest.php
	tests/Adapter/TransactionIteratorTest.php
2014-10-12 19:47:31 -07:00
Graham Campbell
51c641b191 CS fixes 2014-10-01 22:07:32 +01:00
Kristopher Wilson
2b3df4216a Fixing CookieJar cookie-string per RFC 6265 2014-09-11 19:42:18 -04:00
Michael Dowling
668209c895 Getting tests working again. Removing more fluent interfaces.
Removing more fluent interfaces to make it easier to decorate
classes.
2014-09-08 21:35:11 -07:00
Michael Dowling
83a8997158 Implementing toArray() on CookieJar
Adding the ability to create a cookie jar and pass in an array of cookies.
2014-06-07 11:53:47 -07:00
MarkBaker
b0ede6c7b5 Change persist() to save() and make public, make sessionVar private, and remove unnecessary session header handling and exception trapping in tests 2014-04-19 00:29:34 +01:00
MarkBaker
2ba19b2c8b Use client session to persist the cookie jar 2014-04-18 23:58:24 +01:00
Michael Dowling
05976ee2b1 Adding some missing cookie jar tests 2014-03-06 10:35:57 -08:00
Michael Dowling
5472c17055 Simplifying and updating cookie implementation 2014-03-05 00:55:37 -08:00