* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); $t = new lime_test(2); $f = new sfWidgetFormSchemaFormatterTable(new sfWidgetFormSchema()); // ->formatRow() $t->diag('->formatRow()'); $output = << label
help EOF; $t->is($f->formatRow('label', '', array(), 'help', ''), fix_linebreaks($output), '->formatRow() formats a field in a row'); // ->formatErrorRow() $t->diag('->formatErrorRow()'); $output = << EOF; $t->is($f->formatErrorRow(array('Global error', 'id' => 'required', array('sub_id' => 'required'))), fix_linebreaks($output), '->formatErrorRow() formats an array of errors in a row');