TestResponse.php
system/Test/TestResponse.php
1 class
32 methods
class TestResponse
Consolidated response processing for test results.
__construct
(ResponseInterface $response)
setRequest
(RequestInterface $request)
setResponse
(ResponseInterface $response)
request
()
response
()
isOK
()
assertStatus
(int $code)
assertOK
()
assertNotOK
()
isRedirect
()
assertRedirect
()
assertRedirectTo
(string $uri)
assertNotRedirect
()
getRedirectUrl
()
assertSessionHas
(string $key, $value = null)
assertSessionMissing
(string $key)
assertHeader
(string $key, $value = null)
assertHeaderMissing
(string $key)
assertCookie
(string $key, $value = null, string $prefix = '')
assertCookieMissing
(string $key)
assertCookieExpired
(string $key, string $prefix = '')
getJSON
()
assertJSONFragment
(array $fragment, bool $strict = false)
assertJSONExact
($test)
getXML
()
assertSee
(?string $search = null, ?string $element = null)
assertDontSee
(?string $search = null, ?string $element = null)
assertSeeElement
(string $search)
assertDontSeeElement
(string $search)
assertSeeLink
(string $text, ?string $details = null)
assertSeeInField
(string $field, ?string $value = null)
__call
(string $function, array $params)