Skip to content

v0.4.0

Latest

Choose a tag to compare

@niden niden released this 30 Jun 02:04
2f89620

Changed

Added

  • Browser\Client now emits the application's response cookies as Set-Cookie headers, so cookies set through the Phalcon cookies service round-trip through the BrowserKit cookie jar between in-process requests (and cookie deletions evict them). The application under test must run with cookie encryption disabled.

Fixed

  • Browser\Client caps redirect-following (MAX_REDIRECTS); an in-process redirect cycle now raises a clean LogicException instead of recursing until the runtime's stack overflows. The previous default (-1, unbounded) could segfault the Phalcon extension on a redirect loop.
  • BrowserTrait::setCookie() scopes the cookie to the request host, so a cookie set in a test can be expired by an application response — an empty-domain cookie (the previous default) could never be cleared.

Removed