AbstractHttpControllerTestCase

extends Zend\Test\PHPUnit\Controller\AbstractControllerTestCase

Known subclasses

Omeka\Test\AbstractHttpControllerTestCase
Abstract
Open source code
Methods Summary
protected
# getResponseHeader( string $header )
Get response header by key
public
# assertResponseReasonPhrase( string $phrase )
Assert response has the given reason phrase
public
# assertHasResponseHeader( string $header )
Assert response header exists
public
# assertNotHasResponseHeader( string $header )
Assert response header does not exist
public
# assertResponseHeaderContains( string $header , string $match )
Assert response header exists and contains the given string
public
# assertNotResponseHeaderContains( string $header , string $match )
Assert response header exists and contains the given string
public
# assertResponseHeaderRegex( string $header , string $pattern )
Assert response header exists and matches the given pattern
public
# assertNotResponseHeaderRegex( string $header , string $pattern )
Assert response header does not exist and/or does not match the given regex
public
# assertRedirect( )
Assert that response is a redirect
public
# assertNotRedirect( )
Assert that response is NOT a redirect
public
# assertRedirectTo( string $url )
Assert that response redirects to given URL
public
# assertNotRedirectTo( string $url )
Assert that response does not redirect to given URL
public
# assertRedirectRegex( string $pattern )
Assert that redirect location matches pattern
public
# assertNotRedirectRegex( string $pattern )
Assert that redirect location does not match pattern
public
# registerXpathNamespaces( array $xpathNamespaces )
Register XPath namespaces
public
# assertQuery( string $path )
Assert against DOM selection
public
# assertXpathQuery( string $path )
Assert against XPath selection
public
# assertNotQuery( string $path )
Assert against DOM selection
public
# assertNotXpathQuery( string $path )
Assert against XPath selection
public
# assertQueryCount( string $path , string $count )
Assert against DOM selection; should contain exact number of nodes
public
# assertXpathQueryCount( string $path , string $count )
Assert against XPath selection; should contain exact number of nodes
public
# assertNotQueryCount( string $path , string $count )
Assert against DOM selection; should NOT contain exact number of nodes
public
# assertNotXpathQueryCount( string $path , string $count )
Assert against XPath selection; should NOT contain exact number of nodes
public
# assertQueryCountMin( string $path , string $count )
Assert against DOM selection; should contain at least this number of nodes
public
# assertXpathQueryCountMin( string $path , string $count )
Assert against XPath selection; should contain at least this number of nodes
public
# assertQueryCountMax( string $path , string $count )
Assert against DOM selection; should contain no more than this number of nodes
public
# assertXpathQueryCountMax( string $path , string $count )
Assert against XPath selection; should contain no more than this number of nodes
public
# assertQueryContentContains( string $path , string $match )
Assert against DOM selection; node should contain content
public
# assertXpathQueryContentContains( string $path , string $match )
Assert against XPath selection; node should contain content
public
# assertNotQueryContentContains( string $path , string $match )
Assert against DOM selection; node should NOT contain content
public
# assertNotXpathQueryContentContains( string $path , string $match )
Assert against XPath selection; node should NOT contain content
public
# assertQueryContentRegex( string $path , string $pattern )
Assert against DOM selection; node should match content
public
# assertXpathQueryContentRegex( string $path , string $pattern )
Assert against XPath selection; node should match content
public
# assertNotQueryContentRegex( string $path , string $pattern )
Assert against DOM selection; node should NOT match content
public
# assertNotXpathQueryContentRegex( string $path , string $pattern )
Assert against XPath selection; node should NOT match content
Methods inherited from Zend\Test\PHPUnit\Controller\AbstractControllerTestCase
setUp(), tearDown(), createFailureMessage(), getTraceError(), setTraceError(), getUseConsoleRequest(), setUseConsoleRequest(), getApplicationConfig(), setApplicationConfig(), getApplication(), getApplicationServiceLocator(), getRequest(), getResponse(), url(), dispatch(), reset(), triggerApplicationEvent(), assertModulesLoaded(), assertNotModulesLoaded(), getResponseStatusCode(), assertResponseStatusCode(), assertNotResponseStatusCode(), assertApplicationException(), getControllerFullClassName(), assertModuleName(), assertNotModuleName(), assertControllerClass(), assertNotControllerClass(), assertControllerName(), assertNotControllerName(), assertActionName(), assertNotActionName(), assertMatchedRouteName(), assertNotMatchedRouteName(), assertNoMatchedRoute(), assertTemplateName(), assertNotTemplateName(), searchTemplates()
Methods inherited from PHPUnit\Framework\TestCase
Methods inherited from PHPUnit_Framework_TestCase
__construct(), toString(), count(), getAnnotations(), getName(), getSize(), getActualOutput(), hasOutput(), expectOutputRegex(), expectOutputString(), hasPerformedExpectationsOnOutput(), hasExpectationOnOutput(), getExpectedException(), setExpectedException(), setExpectedExceptionRegExp(), setExpectedExceptionFromAnnotation(), setUseErrorHandler(), setUseErrorHandlerFromAnnotation(), checkRequirements(), getStatus(), getStatusMessage(), hasFailed(), run(), runBare(), runTest(), verifyMockObjects(), setName(), setDependencies(), hasDependencies(), setDependencyInput(), setDisallowChangesToGlobalState(), setBackupGlobals(), setBackupStaticAttributes(), setRunTestInSeparateProcess(), setPreserveGlobalState(), setInIsolation(), isInIsolation(), getResult(), setResult(), setOutputCallback(), getTestResultObject(), setTestResultObject(), iniSet(), setLocale(), getMock(), getMockBuilder(), getMockClass(), getMockForAbstractClass(), getMockFromWsdl(), getMockForTrait(), getObjectForTrait(), prophesize(), addToAssertionCount(), getNumAssertions(), any(), never(), atLeast(), atLeastOnce(), once(), exactly(), atMost(), at(), returnValue(), returnValueMap(), returnArgument(), returnCallback(), returnSelf(), throwException(), onConsecutiveCalls(), getDataSetAsString(), createResult(), handleDependencies(), setUpBeforeClass(), setUp(), assertPreConditions(), assertPostConditions(), tearDown(), tearDownAfterClass(), onNotSuccessfulTest(), prepareTemplate(), getMockObjectGenerator()
Methods inherited from PHPUnit_Framework_Assert
assertArrayHasKey(), assertArraySubset(), assertArrayNotHasKey(), assertContains(), assertAttributeContains(), assertNotContains(), assertAttributeNotContains(), assertContainsOnly(), assertContainsOnlyInstancesOf(), assertAttributeContainsOnly(), assertNotContainsOnly(), assertAttributeNotContainsOnly(), assertCount(), assertAttributeCount(), assertNotCount(), assertAttributeNotCount(), assertEquals(), assertAttributeEquals(), assertNotEquals(), assertAttributeNotEquals(), assertEmpty(), assertAttributeEmpty(), assertNotEmpty(), assertAttributeNotEmpty(), assertGreaterThan(), assertAttributeGreaterThan(), assertGreaterThanOrEqual(), assertAttributeGreaterThanOrEqual(), assertLessThan(), assertAttributeLessThan(), assertLessThanOrEqual(), assertAttributeLessThanOrEqual(), assertFileEquals(), assertFileNotEquals(), assertStringEqualsFile(), assertStringNotEqualsFile(), assertFileExists(), assertFileNotExists(), assertTrue(), assertNotTrue(), assertFalse(), assertNotFalse(), assertNotNull(), assertNull(), assertClassHasAttribute(), assertClassNotHasAttribute(), assertClassHasStaticAttribute(), assertClassNotHasStaticAttribute(), assertObjectHasAttribute(), assertObjectNotHasAttribute(), assertSame(), assertAttributeSame(), assertNotSame(), assertAttributeNotSame(), assertInstanceOf(), assertAttributeInstanceOf(), assertNotInstanceOf(), assertAttributeNotInstanceOf(), assertInternalType(), assertAttributeInternalType(), assertNotInternalType(), assertAttributeNotInternalType(), assertRegExp(), assertNotRegExp(), assertSameSize(), assertNotSameSize(), assertStringMatchesFormat(), assertStringNotMatchesFormat(), assertStringMatchesFormatFile(), assertStringNotMatchesFormatFile(), assertStringStartsWith(), assertStringStartsNotWith(), assertStringEndsWith(), assertStringEndsNotWith(), assertXmlFileEqualsXmlFile(), assertXmlFileNotEqualsXmlFile(), assertXmlStringEqualsXmlFile(), assertXmlStringNotEqualsXmlFile(), assertXmlStringEqualsXmlString(), assertXmlStringNotEqualsXmlString(), assertEqualXMLStructure(), assertSelectCount(), assertSelectRegExp(), assertSelectEquals(), assertTag(), assertNotTag(), assertThat(), assertJson(), assertJsonStringEqualsJsonString(), assertJsonStringNotEqualsJsonString(), assertJsonStringEqualsJsonFile(), assertJsonStringNotEqualsJsonFile(), assertJsonFileNotEqualsJsonFile(), assertJsonFileEqualsJsonFile(), logicalAnd(), logicalOr(), logicalNot(), logicalXor(), anything(), isTrue(), callback(), isFalse(), isJson(), isNull(), attribute(), contains(), containsOnly(), containsOnlyInstancesOf(), arrayHasKey(), equalTo(), attributeEqualTo(), isEmpty(), fileExists(), greaterThan(), greaterThanOrEqual(), classHasAttribute(), classHasStaticAttribute(), objectHasAttribute(), identicalTo(), isInstanceOf(), isType(), lessThan(), lessThanOrEqual(), matchesRegularExpression(), matches(), stringStartsWith(), stringContains(), stringEndsWith(), countOf(), fail(), readAttribute(), getStaticAttribute(), getObjectAttribute(), markTestIncomplete(), markTestSkipped(), getCount(), resetCount()
Properties Summary
protected bool $useConsoleRequest
HTTP controller must not use the console request
# false
protected array $xpathNamespaces
XPath namespaces
# array ( )
Properties inherited from Zend\Test\PHPUnit\Controller\AbstractControllerTestCase
$application, $applicationConfig, $useConsoleRequest, $usedConsoleBackup, $traceError
Properties inherited from PHPUnit_Framework_TestCase
$backupGlobals, $backupGlobalsBlacklist, $backupStaticAttributes, $backupStaticAttributesBlacklist, $runTestInSeparateProcess, $preserveGlobalState