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

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство 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.

Méthodes publiques

Méthode Description
testGetOptions ( )
testGetOptionsException ( )
testGetOptionsMethodNotAllowed ( )
testGetOptionsNoMethods ( )
testGetOptionsNotRestRequest ( )
testGetOptionsResourceNotFound ( )

Méthodes protégées

Méthode 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 méthode

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

getProvider() protected méthode

protected getProvider ( )

getRequestMatcherMock() protected méthode

protected getRequestMatcherMock ( ) : PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Symfony\Component\Routing\Matcher\RequestMatcherInterface
Résultat PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject | Symfony\Component\Routing\Matcher\RequestMatcherInterface

testGetOptions() public méthode

public testGetOptions ( )

testGetOptionsException() public méthode

testGetOptionsMethodNotAllowed() public méthode

testGetOptionsNoMethods() public méthode

testGetOptionsNotRestRequest() public méthode

testGetOptionsResourceNotFound() public méthode

Property Details

$matchRequestResult protected_oe 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