replace Exception on GeneralException
This commit is contained in:
@ -17,6 +17,7 @@ require_once dirname(__FILE__) . '/../../validator/Validator.php';
|
||||
require_once dirname(__FILE__) . '/../../validator/RegexValidator.php';
|
||||
require_once dirname(__FILE__) . '/../../validator/NotEmptyValidator.php';
|
||||
require_once dirname(__FILE__) . '/../../validator/EmailValidator.php';
|
||||
require_once dirname(__FILE__) . '/../../exception/InitializationException.php';
|
||||
|
||||
class FormTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
@ -51,7 +52,7 @@ class FormTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
$form = new NotEmptyForm();
|
||||
// @TODO Fix exception type
|
||||
$this->setExpectedException('Exception', 'Form::Form::isValid expects an array');
|
||||
$this->setExpectedException('InitializationException', 'Form::Form::isValid expects an array');
|
||||
$form->isValid('');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user