PHP Class eZ\Bundle\EzPublishRestBundle\Tests\CorsOptions\RestProviderTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$matchRequestResult Return value expectation for RequestMatcher::matchRequest Set to false to expect Router::match() never to be called, or to an exception to have it throw one.

Public Methods

Method Description
testGetOptions ( )
testGetOptionsException ( )
testGetOptionsMethodNotAllowed ( )
testGetOptionsNoMethods ( )
testGetOptionsNotRestRequest ( )
testGetOptionsResourceNotFound ( )

Protected Methods

Method Description
createRequest ( boolean $isRestRequest = true ) : Request
getProvider ( )
getRequestMatcherMock ( ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Symfony\Component\Routing\Matcher\RequestMatcherInterface

Method Details

createRequest() protected method

protected createRequest ( boolean $isRestRequest = true ) : Request
$isRestRequest boolean wether or not to set the is_rest_request attribute
return Symfony\Component\HttpFoundation\Request

getProvider() protected method

protected getProvider ( )

getRequestMatcherMock() protected method

protected getRequestMatcherMock ( ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Symfony\Component\Routing\Matcher\RequestMatcherInterface
return PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Symfony\Component\Routing\Matcher\RequestMatcherInterface

testGetOptions() public method

public testGetOptions ( )

testGetOptionsException() public method

testGetOptionsMethodNotAllowed() public method

testGetOptionsNoMethods() public method

testGetOptionsNotRestRequest() public method

testGetOptionsResourceNotFound() public method

Property Details

$matchRequestResult protected property

Return value expectation for RequestMatcher::matchRequest Set to false to expect Router::match() never to be called, or to an exception to have it throw one.
protected $matchRequestResult