PHP Class Symfony\Component\Form\Tests\ChoiceList\Factory\DefaultChoiceListFactoryTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: symfony/symfony

Public Methods

Method Description
getAttr ( $object )
getFormIndex ( $object )
getGroup ( $object )
getGroupAsObject ( $object )
getLabel ( $object )
getScalarValue ( $choice )
getValue ( $object )
isPreferred ( $object )
testCreateFromChoicesEmpty ( )
testCreateFromChoicesFlat ( )
testCreateFromChoicesFlatTraversable ( )
testCreateFromChoicesFlatValuesAsCallable ( )
testCreateFromChoicesFlatValuesAsClosure ( )
testCreateFromChoicesGrouped ( )
testCreateFromChoicesGroupedTraversable ( )
testCreateFromChoicesGroupedValuesAsCallable ( )
testCreateFromChoicesGroupedValuesAsClosure ( )
testCreateFromLoader ( )
testCreateFromLoaderWithValues ( )
testCreateViewFlat ( )
testCreateViewFlatAttrAsArray ( )
testCreateViewFlatAttrAsCallable ( )
testCreateViewFlatAttrAsClosure ( )
testCreateViewFlatAttrClosureReceivesKey ( )
testCreateViewFlatAttrClosureReceivesValue ( )
testCreateViewFlatAttrEmpty ( )
testCreateViewFlatGroupByAsCallable ( )
testCreateViewFlatGroupByAsClosure ( )
testCreateViewFlatGroupByClosureReceivesKey ( )
testCreateViewFlatGroupByClosureReceivesValue ( )
testCreateViewFlatGroupByEmpty ( )
testCreateViewFlatGroupByObjectThatCanBeCastToString ( )
testCreateViewFlatGroupByOriginalStructure ( )
testCreateViewFlatIndexAsCallable ( )
testCreateViewFlatIndexAsClosure ( )
testCreateViewFlatIndexClosureReceivesKey ( )
testCreateViewFlatIndexClosureReceivesValue ( )
testCreateViewFlatLabelAsCallable ( )
testCreateViewFlatLabelAsClosure ( )
testCreateViewFlatLabelClosureReceivesKey ( )
testCreateViewFlatLabelClosureReceivesValue ( )
testCreateViewFlatPreferredChoices ( )
testCreateViewFlatPreferredChoicesAsCallable ( )
testCreateViewFlatPreferredChoicesAsClosure ( )
testCreateViewFlatPreferredChoicesClosureReceivesKey ( )
testCreateViewFlatPreferredChoicesClosureReceivesValue ( )
testCreateViewFlatPreferredChoicesEmptyArray ( )

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
assertFlatView ( $view )
assertFlatViewWithAttr ( $view )
assertFlatViewWithCustomIndices ( $view )
assertGroupedView ( $view )
assertObjectListWithCustomValues ( Symfony\Component\Form\ChoiceList\ChoiceListInterface $list )
assertObjectListWithGeneratedValues ( Symfony\Component\Form\ChoiceList\ChoiceListInterface $list )
assertScalarListWithChoiceValues ( Symfony\Component\Form\ChoiceList\ChoiceListInterface $list )
assertScalarListWithCustomValues ( Symfony\Component\Form\ChoiceList\ChoiceListInterface $list )

Method Details

getAttr() public method

public getAttr ( $object )

getFormIndex() public method

public getFormIndex ( $object )

getGroup() public method

public getGroup ( $object )

getGroupAsObject() public method

public getGroupAsObject ( $object )

getLabel() public method

public getLabel ( $object )

getScalarValue() public method

public getScalarValue ( $choice )

getValue() public method

public getValue ( $object )

isPreferred() public method

public isPreferred ( $object )

setUp() protected method

protected setUp ( )

testCreateFromChoicesEmpty() public method

testCreateFromChoicesFlat() public method

testCreateFromChoicesFlatTraversable() public method

testCreateFromChoicesFlatValuesAsCallable() public method

testCreateFromChoicesFlatValuesAsClosure() public method

testCreateFromChoicesGrouped() public method

testCreateFromChoicesGroupedTraversable() public method

testCreateFromChoicesGroupedValuesAsCallable() public method

testCreateFromChoicesGroupedValuesAsClosure() public method

testCreateFromLoader() public method

testCreateFromLoaderWithValues() public method

testCreateViewFlat() public method

public testCreateViewFlat ( )

testCreateViewFlatAttrAsArray() public method

testCreateViewFlatAttrAsCallable() public method

testCreateViewFlatAttrAsClosure() public method

testCreateViewFlatAttrClosureReceivesKey() public method

testCreateViewFlatAttrClosureReceivesValue() public method

testCreateViewFlatAttrEmpty() public method

testCreateViewFlatGroupByAsCallable() public method

testCreateViewFlatGroupByAsClosure() public method

testCreateViewFlatGroupByClosureReceivesKey() public method

testCreateViewFlatGroupByClosureReceivesValue() public method

testCreateViewFlatGroupByEmpty() public method

testCreateViewFlatGroupByObjectThatCanBeCastToString() public method

testCreateViewFlatGroupByOriginalStructure() public method

testCreateViewFlatIndexAsCallable() public method

testCreateViewFlatIndexAsClosure() public method

testCreateViewFlatIndexClosureReceivesKey() public method

testCreateViewFlatIndexClosureReceivesValue() public method

testCreateViewFlatLabelAsCallable() public method

testCreateViewFlatLabelAsClosure() public method

testCreateViewFlatLabelClosureReceivesKey() public method

testCreateViewFlatLabelClosureReceivesValue() public method

testCreateViewFlatPreferredChoices() public method

testCreateViewFlatPreferredChoicesAsCallable() public method

testCreateViewFlatPreferredChoicesAsClosure() public method

testCreateViewFlatPreferredChoicesClosureReceivesKey() public method

testCreateViewFlatPreferredChoicesClosureReceivesValue() public method

testCreateViewFlatPreferredChoicesEmptyArray() public method