Changeset 5949
- Timestamp:
- 11/10/07 13:56:46 (10 months ago)
- Files:
-
- trunk/lib/validator/sfValidatorSchema.class.php (modified) (1 diff)
- trunk/test/unit/validator/sfValidatorSchemaTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/validator/sfValidatorSchema.class.php
r5882 r5949 164 164 try 165 165 { 166 $ this->fields[$name]->clean(null);166 $clean[$name] = $this->fields[$name]->clean(null); 167 167 } 168 168 catch (sfValidatorError $e) trunk/test/unit/validator/sfValidatorSchemaTest.php
r5816 r5949 11 11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 12 12 13 $t = new lime_test(4 3, new lime_output_color());13 $t = new lime_test(44, new lime_output_color()); 14 14 15 15 class PreValidator extends sfValidator … … 192 192 } 193 193 194 $v = new sfValidatorSchema(array('s1' => $v1, 's2' => $v2)); 195 $t->is($v->clean(array('s1' => 'foo')), array('s1' => 'foo', 's2' => null), '->clean() returns null values for fields not present in the input array'); 196 194 197 $t->diag('extra fields'); 195 198 $v = new sfValidatorSchema(array('s1' => $v1, 's2' => $v2));