Changeset 13343
- Timestamp:
- 11/25/08 18:14:09 (7 months ago)
- Files:
-
- branches/1.2/lib/test/sfTesterForm.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/test/sfTesterForm.class.php
r13342 r13343 158 158 if ($match[1] == '!') 159 159 { 160 $this->tester->unlike($error-> __toString(), substr($value, 1), sprintf('the submitted form has a "%s" error that does not match "%s".', $field, $value));160 $this->tester->unlike($error->getCode(), substr($value, 1), sprintf('the submitted form has a "%s" error that does not match "%s".', $field, $value)); 161 161 } 162 162 else 163 163 { 164 $this->tester->like($error-> __toString(), $value, sprintf('the submitted form has a "%s" error that matches "%s".', $field, $value));164 $this->tester->like($error->getCode(), $value, sprintf('the submitted form has a "%s" error that matches "%s".', $field, $value)); 165 165 } 166 166 } … … 174 174 else 175 175 { 176 $this->tester->is($error-> __toString(), $value, sprintf('the submitted form has a "%s" error (%s).', $field, $value));176 $this->tester->is($error->getCode(), $value, sprintf('the submitted form has a "%s" error (%s).', $field, $value)); 177 177 } 178 178 }

