PHP Класс FormTests, Formidable

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

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

Метод Описание
getCacheDirectory ( )
setup ( )
teardown ( )
testAccessingNotExistingField ( ) Testing that accessing a non-existent field raise an exception
testAttributes ( ) Testing attributes handling
testCache ( ) Testing caching a form
testCsrfSecretGeneration ( ) Testing that the generated secret is different
testCsrfTokenCheck ( ) Testing posted() returns true when the csrd token is in the request
testCsrfTokenGeneration ( ) Testing that the CSRF token is t he same if computer twice on the same file, and different for another file with a different form name
testEnctype ( ) Testing that the enctype becomes multipart when there is file
testGetValues ( ) Testing default values
testGuessPathOrContent ( ) Testing that Formidable guess if it should interpret the contents
testOutIn ( ) Testing that Formidable output given back to Formidable gives the same output
testPHPInterpreter ( ) Testing running the PHP interpreter on the form
testPlaceholder ( )
testPostIndicator ( ) Testing a post indicator without session
testPostValue ( ) Testing the filling of the values in the form using post
testSetMultipleValues ( ) Testing definition with multiple values
testSetValues ( ) Testing defining values
testToString ( ) Testing that toString() give the same thing as getHtml()

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

Метод Описание
getForm ( $file, $vars = [], $cache = false )

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

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

public getCacheDirectory ( )

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

public setup ( )

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

public teardown ( )

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

Testing that accessing a non-existent field raise an exception

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

Testing attributes handling
public testAttributes ( )

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

Testing caching a form
public testCache ( )

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

Testing that the generated secret is different

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

Testing posted() returns true when the csrd token is in the request
public testCsrfTokenCheck ( )

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

Testing that the CSRF token is t he same if computer twice on the same file, and different for another file with a different form name

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

Testing that the enctype becomes multipart when there is file
public testEnctype ( )

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

Testing default values
public testGetValues ( )

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

Testing that Formidable guess if it should interpret the contents

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

Testing that Formidable output given back to Formidable gives the same output
public testOutIn ( )

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

Testing running the PHP interpreter on the form
public testPHPInterpreter ( )

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

public testPlaceholder ( )

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

Testing a post indicator without session
public testPostIndicator ( )

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

Testing the filling of the values in the form using post
public testPostValue ( )

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

Testing definition with multiple values

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

Testing defining values
public testSetValues ( )

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

Testing that toString() give the same thing as getHtml()
public testToString ( )