PHP Класс Symfony\Component\Form\Tests\Extension\Validator\ViolationMapper\ViolationMapperTest

Автор: Bernhard Schussek ([email protected])
Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
provideCustomDataErrorTests ( )
provideCustomFormErrorTests ( )
provideDefaultTests ( )
provideErrorTestsForFormInheritingParentData ( )
testAbortDotRuleMappingIfNotSubmitted ( )
testAbortDotRuleMappingIfNotSynchronized ( )
testAbortMappingIfNotSubmitted ( )
testAbortMappingIfNotSynchronized ( )
testBacktrackIfSeveralSubFormsWithSamePropertyPath ( )
testCustomDataErrorMapping ( $target, $mapFrom, $mapTo, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )
testCustomFormErrorMapping ( $target, $mapFrom, $mapTo, $errorName, $errorPath, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )
testDefaultErrorMapping ( $target, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )
testErrorMappingForFormInheritingParentData ( $target, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )
testFollowDotRules ( )
testMapToFormInheritingParentDataIfDataDoesNotMatch ( )

Защищенные методы

Метод Описание
getConstraintViolation ( $propertyPath ) : ConstraintViolation
getForm ( $name = 'name', $propertyPath = null, $dataClass = null, $errorMapping = [], $inheritData = false, $synchronized = true )
getFormError ( Symfony\Component\Validator\ConstraintViolationInterface $violation, Symfony\Component\Form\FormInterface $form ) : FormError
setUp ( )

Приватные методы

Метод Описание
getDataMapper ( ) : PHPUnit_Framework_MockObject_MockObject

Описание методов

getConstraintViolation() защищенный Метод

protected getConstraintViolation ( $propertyPath ) : ConstraintViolation
$propertyPath
Результат Symfony\Component\Validator\ConstraintViolation

getForm() защищенный Метод

protected getForm ( $name = 'name', $propertyPath = null, $dataClass = null, $errorMapping = [], $inheritData = false, $synchronized = true )

getFormError() защищенный Метод

protected getFormError ( Symfony\Component\Validator\ConstraintViolationInterface $violation, Symfony\Component\Form\FormInterface $form ) : FormError
$violation Symfony\Component\Validator\ConstraintViolationInterface
$form Symfony\Component\Form\FormInterface
Результат Symfony\Component\Form\FormError

provideCustomDataErrorTests() публичный Метод

provideCustomFormErrorTests() публичный Метод

provideDefaultTests() публичный Метод

public provideDefaultTests ( )

provideErrorTestsForFormInheritingParentData() публичный Метод

setUp() защищенный Метод

protected setUp ( )

testAbortDotRuleMappingIfNotSubmitted() публичный Метод

testAbortDotRuleMappingIfNotSynchronized() публичный Метод

testAbortMappingIfNotSubmitted() публичный Метод

testAbortMappingIfNotSynchronized() публичный Метод

testBacktrackIfSeveralSubFormsWithSamePropertyPath() публичный Метод

testCustomDataErrorMapping() публичный Метод

public testCustomDataErrorMapping ( $target, $mapFrom, $mapTo, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )

testCustomFormErrorMapping() публичный Метод

public testCustomFormErrorMapping ( $target, $mapFrom, $mapTo, $errorName, $errorPath, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )

testDefaultErrorMapping() публичный Метод

public testDefaultErrorMapping ( $target, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )

testErrorMappingForFormInheritingParentData() публичный Метод

public testErrorMappingForFormInheritingParentData ( $target, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )

testFollowDotRules() публичный Метод

public testFollowDotRules ( )

testMapToFormInheritingParentDataIfDataDoesNotMatch() публичный Метод