There is SimplePage::getHeaders(), but it returns $this->headers->getRaw()
and not just $this->headers.
$headers would be more interesting though, since it allows e.g. to query
getLocation().
I think adding getResponse to SimpleBrowser and SimplePage would be very
useful.
This would allow to use something like the following:
$this->getBrowser()->getResponse()->getHeaders()->getLocation()
or use the isRedirect test from SimpleHttpHeaders in your tests yourself.
Have I missed something? Is there another way to access the response and/or
the headers?
Mark Rickerby
Web tester
None
Public
|
Date: 2009-11-13 02:20 This Tracker item was closed automatically by the system. It was |
|
Date: 2009-10-29 18:14 Thanks for the feedback... |
|
Date: 2009-10-29 12:59 Yes, assertHeader() works. Thanks! |
|
Date: 2009-10-27 08:27 Does assertHeader() not work in this case? |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Pending | 2009-11-13 02:20 | sf-robot |
| allow_comments | 1 | 2009-11-13 02:20 | sf-robot |
| close_date | 2009-10-29 18:14 | 2009-11-13 02:20 | sf-robot |
| status_id | Open | 2009-10-29 18:14 | maetl_ |
| close_date | - | 2009-10-29 18:14 | maetl_ |
| category_id | None | 2009-10-29 18:14 | maetl_ |
| assigned_to | nobody | 2009-10-29 18:14 | maetl_ |