| 46 | | try |
|---|
| 47 | | { |
|---|
| 48 | | $es->addError($es1); |
|---|
| 49 | | $t->fail('->addError() throws a LogicException if you try to add a global sfValidatorErrorSchema'); |
|---|
| 50 | | } |
|---|
| 51 | | catch (LogicException $e) |
|---|
| 52 | | { |
|---|
| 53 | | $t->pass('->addError() throws a LogicException if you try to add a global sfValidatorErrorSchema'); |
|---|
| 54 | | } |
|---|
| | 46 | $es->addError($es1); |
|---|
| | 47 | $t->is($es->getCode(), 'max_length min_length max_length e1 [max_length min_length max_length] e2 [max_length min_length e1 [max_length] e2 [min_length]] e3 [max_length e1 [max_length] e2 [min_length]]', '->addError() adds an error to the error schema'); |
|---|