312. Class

312.1. Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase

312.1.1. Methods

312.1.1.1. getResponseHeader

getResponseHeader()

Get response header by key

Parameters:string
Return type:ZendHttpHeaderHeaderInterface|false

312.1.1.2. assertHasResponseHeader

assertHasResponseHeader()

Assert response header exists

Parameters:string

312.1.1.3. assertNotHasResponseHeader

assertNotHasResponseHeader()

Assert response header does not exist

Parameters:string

312.1.1.4. assertResponseHeaderContains

assertResponseHeaderContains()

Assert response header exists and contains the given string

Parameters:
  • string
  • string

312.1.1.5. assertNotResponseHeaderContains

assertNotResponseHeaderContains()

Assert response header exists and contains the given string

Parameters:
  • string
  • string

312.1.1.6. assertResponseHeaderRegex

assertResponseHeaderRegex()

Assert response header exists and matches the given pattern

Parameters:
  • string
  • string

312.1.1.7. assertNotResponseHeaderRegex

assertNotResponseHeaderRegex()

Assert response header does not exist and/or does not match the given regex

Parameters:
  • string
  • string

312.1.1.8. assertRedirect

assertRedirect()

Assert that response is a redirect

312.1.1.9. assertNotRedirect

assertNotRedirect()

Assert that response is NOT a redirect

Parameters:string

312.1.1.10. assertRedirectTo

assertRedirectTo()

Assert that response redirects to given URL

Parameters:string

312.1.1.11. assertNotRedirectTo

assertNotRedirectTo()

Assert that response does not redirect to given URL

Parameters:
  • string
  • string

312.1.1.12. assertRedirectRegex

assertRedirectRegex()

Assert that redirect location matches pattern

Parameters:string

312.1.1.13. assertNotRedirectRegex

assertNotRedirectRegex()

Assert that redirect location does not match pattern

Parameters:string

312.1.1.14. registerXpathNamespaces

registerXpathNamespaces()

Register XPath namespaces

Parameters:array

312.1.1.15. query

query()

Execute a DOM/XPath query

Parameters:
  • string
  • boolean
Return type:

array

312.1.1.16. xpathQuery

xpathQuery()

Execute a xpath query

Parameters:string
Return type:array

312.1.1.17. queryCount

queryCount()

Count the dom query executed

Parameters:string
Return type:integer

312.1.1.18. xpathQueryCount

xpathQueryCount()

Count the dom query executed

Parameters:string
Return type:integer

312.1.1.19. queryAssertion

queryAssertion()

Assert against DOM/XPath selection

Parameters:
  • string
  • boolean

312.1.1.20. assertQuery

assertQuery()

Assert against DOM selection

Parameters:string – CSS selector path

312.1.1.21. assertXpathQuery

assertXpathQuery()

Assert against XPath selection

Parameters:string – XPath path

312.1.1.22. notQueryAssertion

notQueryAssertion()

Assert against DOM/XPath selection

Parameters:
  • string – CSS selector path
  • boolean

312.1.1.23. assertNotQuery

assertNotQuery()

Assert against DOM selection

Parameters:string – CSS selector path

312.1.1.24. assertNotXpathQuery

assertNotXpathQuery()

Assert against XPath selection

Parameters:string – XPath path

312.1.1.25. queryCountAssertion

queryCountAssertion()

Assert against DOM/XPath selection; should contain exact number of nodes

Parameters:
  • string – CSS selector path
  • string – Number of nodes that should match
  • boolean

312.1.1.26. assertQueryCount

assertQueryCount()

Assert against DOM selection; should contain exact number of nodes

Parameters:
  • string – CSS selector path
  • string – Number of nodes that should match

312.1.1.27. assertXpathQueryCount

assertXpathQueryCount()

Assert against XPath selection; should contain exact number of nodes

Parameters:
  • string – XPath path
  • string – Number of nodes that should match

312.1.1.28. notQueryCountAssertion

notQueryCountAssertion()

Assert against DOM/XPath selection; should NOT contain exact number of nodes

Parameters:
  • string – CSS selector path
  • string – Number of nodes that should NOT match
  • boolean

312.1.1.29. assertNotQueryCount

assertNotQueryCount()

Assert against DOM selection; should NOT contain exact number of nodes

Parameters:
  • string – CSS selector path
  • string – Number of nodes that should NOT match

312.1.1.30. assertNotXpathQueryCount

assertNotXpathQueryCount()

Assert against XPath selection; should NOT contain exact number of nodes

Parameters:
  • string – XPath path
  • string – Number of nodes that should NOT match

312.1.1.31. queryCountMinAssertion

queryCountMinAssertion()

Assert against DOM/XPath selection; should contain at least this number of nodes

Parameters:
  • string – CSS selector path
  • string – Minimum number of nodes that should match
  • boolean

312.1.1.32. assertQueryCountMin

assertQueryCountMin()

Assert against DOM selection; should contain at least this number of nodes

Parameters:
  • string – CSS selector path
  • string – Minimum number of nodes that should match

312.1.1.33. assertXpathQueryCountMin

assertXpathQueryCountMin()

Assert against XPath selection; should contain at least this number of nodes

Parameters:
  • string – XPath path
  • string – Minimum number of nodes that should match

312.1.1.34. queryCountMaxAssertion

queryCountMaxAssertion()

Assert against DOM/XPath selection; should contain no more than this number of nodes

Parameters:
  • string – CSS selector path
  • string – Maximum number of nodes that should match
  • boolean

312.1.1.35. assertQueryCountMax

assertQueryCountMax()

Assert against DOM selection; should contain no more than this number of nodes

Parameters:
  • string – CSS selector path
  • string – Maximum number of nodes that should match

312.1.1.36. assertXpathQueryCountMax

assertXpathQueryCountMax()

Assert against XPath selection; should contain no more than this number of nodes

Parameters:
  • string – XPath path
  • string – Maximum number of nodes that should match

312.1.1.37. queryContentContainsAssertion

queryContentContainsAssertion()

Assert against DOM/XPath selection; node should contain content

Parameters:
  • string – CSS selector path
  • string – content that should be contained in matched nodes
  • boolean

312.1.1.38. assertQueryContentContains

assertQueryContentContains()

Assert against DOM selection; node should contain content

Parameters:
  • string – CSS selector path
  • string – content that should be contained in matched nodes

312.1.1.39. assertXpathQueryContentContains

assertXpathQueryContentContains()

Assert against XPath selection; node should contain content

Parameters:
  • string – XPath path
  • string – content that should be contained in matched nodes

312.1.1.40. notQueryContentContainsAssertion

notQueryContentContainsAssertion()

Assert against DOM/XPath selection; node should NOT contain content

Parameters:
  • string – CSS selector path
  • string – content that should NOT be contained in matched nodes
  • boolean

312.1.1.41. assertNotQueryContentContains

assertNotQueryContentContains()

Assert against DOM selection; node should NOT contain content

Parameters:
  • string – CSS selector path
  • string – content that should NOT be contained in matched nodes

312.1.1.42. assertNotXpathQueryContentContains

assertNotXpathQueryContentContains()

Assert against XPath selection; node should NOT contain content

Parameters:
  • string – XPath path
  • string – content that should NOT be contained in matched nodes

312.1.1.43. queryContentRegexAssertion

queryContentRegexAssertion()

Assert against DOM/XPath selection; node should match content

Parameters:
  • string – CSS selector path
  • string – Pattern that should be contained in matched nodes
  • boolean

312.1.1.44. assertQueryContentRegex

assertQueryContentRegex()

Assert against DOM selection; node should match content

Parameters:
  • string – CSS selector path
  • string – Pattern that should be contained in matched nodes

312.1.1.45. assertXpathQueryContentRegex

assertXpathQueryContentRegex()

Assert against XPath selection; node should match content

Parameters:
  • string – XPath path
  • string – Pattern that should be contained in matched nodes

312.1.1.46. notQueryContentRegexAssertion

notQueryContentRegexAssertion()

Assert against DOM/XPath selection; node should NOT match content

Parameters:
  • string – CSS selector path
  • string – pattern that should NOT be contained in matched nodes
  • boolean

312.1.1.47. assertNotQueryContentRegex

assertNotQueryContentRegex()

Assert against DOM selection; node should NOT match content

Parameters:
  • string – CSS selector path
  • string – pattern that should NOT be contained in matched nodes

312.1.1.48. assertNotXpathQueryContentRegex

assertNotXpathQueryContentRegex()

Assert against XPath selection; node should NOT match content

Parameters:
  • string – XPath path
  • string – pattern that should NOT be contained in matched nodes

Project Versions

Table Of Contents

Previous topic

311. Class

Next topic

313. Class

This Page