PHP Class Symfony\Component\Form\Tests\Extension\Validator\Constraints\FormValidatorTest

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

Protected Properties

Property Type Description
$serverParams PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
getValidationGroups ( Symfony\Component\Form\FormInterface $form ) Access has to be public, as this method is called via callback array in {@link testValidateFormDataCanHandleCallbackValidationGroups()} and {@link testValidateFormDataUsesInheritedCallbackValidationGroup()}.
testAddInvalidErrorEvenIfNoValidationGroups ( )
testAppendPropertyPath ( )
testDontExecuteFunctionNames ( )
testDontMarkInvalidIfAnyChildIsNotSynchronized ( ) https://github.com/symfony/symfony/issues/4359
testDontUseValidationGroupOfUnclickedButton ( )
testDontValidateConstraintsIfNoValidationGroups ( )
testDontValidateConstraintsIfNotSynchronized ( )
testDontValidateIfNoValidationGroups ( )
testDontValidateIfNotSynchronized ( )
testDontValidateIfParentWithoutValidConstraint ( )
testDontWalkScalars ( )
testHandleCallbackValidationGroups ( )
testHandleClosureValidationGroups ( )
testHandleGroupSequenceValidationGroups ( )
testMissingConstraintIndex ( )
testNoViolationIfAllowExtraData ( )
testUseInheritedCallbackValidationGroup ( )
testUseInheritedClosureValidationGroup ( )
testUseInheritedValidationGroup ( )
testUseValidationGroupOfClickedButton ( )
testValidate ( )
testValidateChildIfValidConstraint ( )
testValidateConstraints ( )
testValidateConstraintsOptionEvenIfNoValidConstraint ( )
testViolationIfExtraData ( )

Protected Methods

Method Description
createValidator ( )
setUp ( )

Private Methods

Method Description
getBuilder ( string $name = 'name', string $dataClass = null, array $options = [] ) : FormBuilder
getDataMapper ( ) : PHPUnit_Framework_MockObject_MockObject
getForm ( $name = 'name', $dataClass = null, array $options = [] )
getMockExecutionContext ( )
getSubmitButton ( $name = 'name', array $options = [] )

Method Details

createValidator() protected method

protected createValidator ( )

getValidationGroups() public method

Access has to be public, as this method is called via callback array in {@link testValidateFormDataCanHandleCallbackValidationGroups()} and {@link testValidateFormDataUsesInheritedCallbackValidationGroup()}.
public getValidationGroups ( Symfony\Component\Form\FormInterface $form )
$form Symfony\Component\Form\FormInterface

setUp() protected method

protected setUp ( )

testAddInvalidErrorEvenIfNoValidationGroups() public method

testAppendPropertyPath() public method

testDontExecuteFunctionNames() public method

testDontMarkInvalidIfAnyChildIsNotSynchronized() public method

https://github.com/symfony/symfony/issues/4359

testDontUseValidationGroupOfUnclickedButton() public method

testDontValidateConstraintsIfNoValidationGroups() public method

testDontValidateConstraintsIfNotSynchronized() public method

testDontValidateIfNoValidationGroups() public method

testDontValidateIfNotSynchronized() public method

testDontValidateIfParentWithoutValidConstraint() public method

testDontWalkScalars() public method

public testDontWalkScalars ( )

testHandleCallbackValidationGroups() public method

testHandleClosureValidationGroups() public method

testHandleGroupSequenceValidationGroups() public method

testMissingConstraintIndex() public method

testNoViolationIfAllowExtraData() public method

testUseInheritedCallbackValidationGroup() public method

testUseInheritedClosureValidationGroup() public method

testUseInheritedValidationGroup() public method

testUseValidationGroupOfClickedButton() public method

testValidate() public method

public testValidate ( )

testValidateChildIfValidConstraint() public method

testValidateConstraints() public method

testValidateConstraintsOptionEvenIfNoValidConstraint() public method

testViolationIfExtraData() public method

Property Details

$serverParams protected property

protected PHPUnit_Framework_MockObject_MockObject $serverParams
return PHPUnit_Framework_MockObject_MockObject