PHP Class Symfony\Component\Form\Tests\AbstractRequestHandlerTest

Author: Bernhard Schussek ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: symfony/symfony Class Usage Examples

Protected Properties

Property Type Description
$factory Symfony\Component\Form\FormFactory
$request
$requestHandler Symfony\Component\Form\RequestHandlerInterface
$serverParams

Public Methods

Method Description
getPostMaxSizeFixtures ( )
methodExceptGetProvider ( )
methodProvider ( )
testAddFormErrorIfPostMaxSizeExceeded ( $contentLength, $iniMax, $shouldFail, array $errorParams = [] )
testDoNoSubmitSimpleFormIfNameNotInRequestAndNotGetRequest ( $method )
testDoNotSubmitCompoundFormIfNameNotInRequestAndNotGetRequest ( $method )
testDoNotSubmitFormWithEmptyNameIfNoFieldInRequest ( $method )
testDoNotSubmitIfNameNotInRequestAndGetRequest ( )
testDoNotSubmitIfWrongRequestMethod ( $method )
testMergeParamsAndFiles ( $method )
testParamTakesPrecedenceOverFile ( $method )
testSubmitFileIfNoParam ( $method )
testSubmitFileWithNamelessForm ( $method )
testSubmitFormWithEmptyNameIfAtLeastOneFieldInRequest ( $method )
testSubmitIfNameInRequest ( $method )
testSubmitMultipleFiles ( $method )

Protected Methods

Method Description
getMockFile ( $suffix = '' )
getMockForm ( $name, $method = null, $compound = true )
getRequestHandler ( )
setRequestData ( $method, $data, $files = [] )
setUp ( )

Method Details

getMockFile() abstract protected method

abstract protected getMockFile ( $suffix = '' )

getMockForm() protected method

protected getMockForm ( $name, $method = null, $compound = true )

getPostMaxSizeFixtures() public method

getRequestHandler() abstract protected method

abstract protected getRequestHandler ( )

methodExceptGetProvider() public method

methodProvider() public method

public methodProvider ( )

setRequestData() abstract protected method

abstract protected setRequestData ( $method, $data, $files = [] )

setUp() protected method

protected setUp ( )

testAddFormErrorIfPostMaxSizeExceeded() public method

public testAddFormErrorIfPostMaxSizeExceeded ( $contentLength, $iniMax, $shouldFail, array $errorParams = [] )
$errorParams array

testDoNoSubmitSimpleFormIfNameNotInRequestAndNotGetRequest() public method

testDoNotSubmitCompoundFormIfNameNotInRequestAndNotGetRequest() public method

testDoNotSubmitFormWithEmptyNameIfNoFieldInRequest() public method

testDoNotSubmitIfNameNotInRequestAndGetRequest() public method

testDoNotSubmitIfWrongRequestMethod() public method

testMergeParamsAndFiles() public method

public testMergeParamsAndFiles ( $method )

testParamTakesPrecedenceOverFile() public method

testSubmitFileIfNoParam() public method

public testSubmitFileIfNoParam ( $method )

testSubmitFileWithNamelessForm() public method

public testSubmitFileWithNamelessForm ( $method )

testSubmitFormWithEmptyNameIfAtLeastOneFieldInRequest() public method

testSubmitIfNameInRequest() public method

public testSubmitIfNameInRequest ( $method )

testSubmitMultipleFiles() public method

public testSubmitMultipleFiles ( $method )

Property Details

$factory protected property

protected FormFactory,Symfony\Component\Form $factory
return Symfony\Component\Form\FormFactory

$request protected property

protected $request

$requestHandler protected property

protected RequestHandlerInterface,Symfony\Component\Form $requestHandler
return Symfony\Component\Form\RequestHandlerInterface

$serverParams protected property

protected $serverParams