| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 lmb_require('limb/validation/src/lmbErrorList.class.php'); 10 lmb_require('limb/validation/src/exception/lmbValidationException.class.php'); 11 12 class lmbValidationExceptionTest extends UnitTestCase 13 { 14 function testErrorListAttachedToErrorMessage() 15 { 16 $error_list = new lmbErrorList(); 17 $error_list->addError('error1'); 18 $error_list->addError('error2'); 19 $exception = new lmbValidationException('Message.', $error_list, $params = array()); 20 $this->assertEqual($exception->getMessage(), 'Message. Errors list : error1, error2'); 21 } 22 } 23 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Dec 2 03:54:09 2008 | Cross-referenced by PHPXref 0.7 |