1..90 # __construct() ok 1 - __construct() can take no argument ok 2 - __construct() can take an array of named sfWidget objects ok 3 - __construct() throws an exception when passing a non supported first argument ok 4 - __construct() sets form_formatter option to table by default ok 5 - __construct() can override the default value for the form_formatter option ok 6 - __construct() sets name_format option to table by default ok 7 - __construct() can override the default value for the name_format option # implements ArrayAccess ok 8 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 9 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 10 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 11 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 12 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 13 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 14 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 15 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 16 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 17 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 18 - sfWidgetFormSchema implements the ArrayAccess interface for the fields ok 19 - sfWidgetFormSchema implements the ArrayAccess interface for the fields # ->addFormFormatter() ->setFormFormatterName() ->getFormFormatterName() ->getFormFormatter() ->getFormFormatters() ok 20 - ->getFormFormatter() returns a sfWidgetSchemaFormatter object ok 21 - ->addFormFormatter() associates a name with a sfWidgetSchemaFormatter object ok 22 - ->setFormFormatterName() set the names of the formatter to use when rendering ok 23 - ->setFormFormatterName() throws a InvalidArgumentException when the form format name is not associated with a formatter ok 24 - ->getFormFormatters() returns an array of all formatter for this widget schema # ->setNameFormat() ->getNameFormat() ->generateName() ok 25 - ->generateName() returns a HTML name attribute value for a given field name ok 26 - ->setNameFormat() changes the name format ok 27 - ->getNameFormat() returns the name format ok 28 - ->generateName() returns the name unchanged if the format is false ok 29 - ->setNameFormat() throws an InvalidArgumentException if the format does not contain %s ok 30 - ->generateName() returns a HTML name attribute value for a given field name ok 31 - ->generateName() returns a HTML name attribute value for a given field name # ->getParent() ->setParent() ok 32 - ->getParent() returns null if there is no parent widget schema ok 33 - ->getParent() returns the parent widget schema # ->setLabels() ->setLabel() ->getLabels() ->getLabel() ->generateLabelName() ok 34 - ->getLabels() returns all current labels not ok 35 - ->setLabels() changes all current labels # Failed test (./sfWidgetFormSchemaTest.php at line 160) # got: '%sThe first name' # expected: 'The first name' not ok 36 - ->setLabel() sets a label value # Failed test (./sfWidgetFormSchemaTest.php at line 163) # got: '%sA first name' # expected: 'A first name' # ->setHelps() ->getHelps() ->setHelp() ->getHelp() ok 37 - ->setHelps() changes all help messages ok 38 - ->setHelp() changes one help message # ->getLabel() ->setLabel() ->getLabels() ->setLabels() ok 39 - ->getLabels() returns the labels ok 40 - ->getLabel() returns the label for a given field ok 41 - ->setLabel() sets a label for a given field ok 42 - ->setLabel() can also set the label for the widget schema # ->getDefault() ->setDefault() ->getDefaults() ->setDefaults() ok 43 - ->getDefaults() returns the default values ok 44 - ->getDefault() returns the default value for a given field ok 45 - ->setDefault() sets a default value for a given field # ->needsMultipartForm() ok 46 - ->needsMultipartForm() returns false if the form schema does not have a widget that needs a multipart form ok 47 - ->needsMultipartForm() returns true if the form schema does not have a widget that needs a multipart form # ->renderField() ok 48 - ->renderField() renders a field to HTML ok 49 - ->renderField() renders a field to HTML ok 50 - ->renderField() throws an InvalidArgumentException if the field does not exist # ->setPositions() ->getPositions() ok 51 - ->setPositions() changes all field positions ok 52 - ->setPositions() changes all field positions ok 53 - ->setPositions() changes all field positions ok 54 - ->setPositions() throws an InvalidArgumentException if you give it a non existant field name ok 55 - ->setPositions() throws an InvalidArgumentException if you miss a field name # ->moveField() ok 56 - ->moveField() can move a field before another one ok 57 - ->moveField() can move a field to the end ok 58 - ->moveField() can move a field to the beginning ok 59 - ->moveField() can move a field before another one ok 60 - ->moveField() throws an LogicException if you don't pass a relative field name with AFTER ok 61 - ->moveField() throws an LogicException if you don't pass a relative field name with BEFORE ok 62 - ->moveField() compares field names as strings ok 63 - ->moveField() compares field names as strings ok 64 - ->moveField() compares field names as strings ok 65 - ->moveField() compares field names as strings # ->getGlobalErrors() not ok 66 - ->getGlobalErrors() returns an array of global errors, errors for hidden fields, and errors for non existent fields # Failed test (./sfWidgetFormSchemaTest.php at line 328) # got: array ( 0 => 'global error', 1 => 'error for w4', '%sW2' => 'error for w2', ) # expected: array ( 0 => 'global error', 1 => 'error for w4', 'W2' => 'error for w2', ) # ->render() ok 67 - ->render() throws an InvalidArgumentException if the second argument is not an array not ok 68 - ->render() renders a schema to HTML # Failed test (./sfWidgetFormSchemaTest.php at line 371) # got: '