diff options
-rw-r--r-- | framework/core.php | 4 | ||||
-rw-r--r-- | tests/UnitTests/framework/utPradoBase.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/core.php b/framework/core.php index 84077a04..794384b4 100644 --- a/framework/core.php +++ b/framework/core.php @@ -468,7 +468,7 @@ class PradoBase {
include_once($type.self::CLASS_FILE_EXT);
if(!class_exists($type,false))
- throw new TInvalidDataValueException('prado_component_unknown',$type);
+ throw new TInvalidOperationException('prado_component_unknown',$type);
}
else
{
@@ -477,7 +477,7 @@ class PradoBase {
include_once($path.self::CLASS_FILE_EXT);
if(!class_exists($className,false))
- throw new TInvalidDataValueException('prado_component_unknown',$type);
+ throw new TInvalidOperationException('prado_component_unknown',$type);
}
$type=$className;
}
diff --git a/tests/UnitTests/framework/utPradoBase.php b/tests/UnitTests/framework/utPradoBase.php index b907aa44..a53c17dd 100644 --- a/tests/UnitTests/framework/utPradoBase.php +++ b/tests/UnitTests/framework/utPradoBase.php @@ -67,7 +67,7 @@ class utPradoBase extends UnitTestCase $this->assertTrue(Prado::createComponent('System.TComponent') instanceof TComponent);
try
{
- Prado::createComponent('System2.TComponent');
+ Prado::createComponent('System.TComponent2');
$this->fail('exception not raised when creating a nonexistent component');
}
catch(TInvalidDataValueException $e)
|