PHP 클래스 ConstraintsTests, Formidable

저자: Grégoire Passault ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: gregwar/formidable

공개 메소드들

메소드 설명
setup ( )
testArray ( ) Testing sending an array on a simple value
testArrayNames ( ) Testing that array names works
testCaptcha ( ) Testing captcha constraint
testCaptchaNotReusable ( ) Testing that a captcha can't be reused
testCheckArray ( ) Testing an array of chk[]
testCheckBadType ( ) Testing bad type
testCustomConstraint ( ) Testing custom constraint
testCustomConstraintType ( ) Testing typehinting
testDate ( ) Testing date type
testEscaping ( ) Testing that data are escaped
testFile ( ) Testing file type
testFileImage ( ) Testing the filetype="image"
testFixedMultiple ( ) Testing
testGlobalConstraints ( ) Testing constraints on the whole form
testHidden ( ) Testing hidden field
testMaxLength ( ) Testing maxlength constraint
testMinLength ( ) Testing minlength constraint
testMinMax ( ) Testing min and max
testMinMaxRendered ( ) Testing that min and max are rendered
testMultiCheckBox ( ) Testing a multicheckbox
testMultiple ( ) Testing
testMultipleFiles ( ) Handling multiple files
testMultiradio ( ) Testing multiradio
testOptional ( ) Testing rendering an optional field
testOptionalMultiradio ( ) Testing a multiradio optional
testOptions ( ) Testing sourcing an
testRadios ( ) Testing radios fields
testReadOnly ( ) Testing that we can't change the readonly field
testRegex ( ) Testing the regex constraint
testRequired ( ) Testing rendering a required field
testReset ( ) Testing reseting a form
testSelectMultiple ( ) Testing against a select with multiple field
testSelectOut ( ) Testing posting a value that is not possible for a select
testStep ( ) Testing a stepped input

비공개 메소드들

메소드 설명
assertAccept ( $form, $data, $files = [] ) Testing that a form accept data
assertRefuse ( $form, $data, $files = [] ) Testing that a form doesn't accept data
getForm ( $file )

메소드 상세

setup() 공개 메소드

public setup ( )

testArray() 공개 메소드

Testing sending an array on a simple value
public testArray ( )

testArrayNames() 공개 메소드

Testing that array names works
public testArrayNames ( )

testCaptcha() 공개 메소드

Testing captcha constraint
public testCaptcha ( )

testCaptchaNotReusable() 공개 메소드

Testing that a captcha can't be reused

testCheckArray() 공개 메소드

Testing an array of chk[]
public testCheckArray ( )

testCheckBadType() 공개 메소드

Testing bad type
public testCheckBadType ( )

testCustomConstraint() 공개 메소드

Testing custom constraint

testCustomConstraintType() 공개 메소드

Testing typehinting

testDate() 공개 메소드

Testing date type
public testDate ( )

testEscaping() 공개 메소드

Testing that data are escaped
public testEscaping ( )

testFile() 공개 메소드

Testing file type
public testFile ( )

testFileImage() 공개 메소드

Testing the filetype="image"
public testFileImage ( )

testFixedMultiple() 공개 메소드

Testing
public testFixedMultiple ( )

testGlobalConstraints() 공개 메소드

Testing constraints on the whole form

testHidden() 공개 메소드

Testing hidden field
public testHidden ( )

testMaxLength() 공개 메소드

Testing maxlength constraint
public testMaxLength ( )

testMinLength() 공개 메소드

Testing minlength constraint
public testMinLength ( )

testMinMax() 공개 메소드

Testing min and max
public testMinMax ( )

testMinMaxRendered() 공개 메소드

Testing that min and max are rendered
public testMinMaxRendered ( )

testMultiCheckBox() 공개 메소드

Testing a multicheckbox
public testMultiCheckBox ( )

testMultiple() 공개 메소드

Testing
public testMultiple ( )

testMultipleFiles() 공개 메소드

Handling multiple files
public testMultipleFiles ( )

testMultiradio() 공개 메소드

Testing multiradio
public testMultiradio ( )

testOptional() 공개 메소드

Testing rendering an optional field
public testOptional ( )

testOptionalMultiradio() 공개 메소드

Testing a multiradio optional

testOptions() 공개 메소드

Testing sourcing an
public testOptions ( )

testRadios() 공개 메소드

Testing radios fields
public testRadios ( )

testReadOnly() 공개 메소드

Testing that we can't change the readonly field
public testReadOnly ( )

testRegex() 공개 메소드

Testing the regex constraint
public testRegex ( )

testRequired() 공개 메소드

Testing rendering a required field
public testRequired ( )

testReset() 공개 메소드

Testing reseting a form
public testReset ( )

testSelectMultiple() 공개 메소드

Testing against a select with multiple field
public testSelectMultiple ( )

testSelectOut() 공개 메소드

Testing posting a value that is not possible for a select
public testSelectOut ( )

testStep() 공개 메소드

Testing a stepped input
public testStep ( )