aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Exception.php6
-rw-r--r--Test/Unit/Exception.php2
-rw-r--r--composer.json3
3 files changed, 6 insertions, 5 deletions
diff --git a/Exception.php b/Exception.php
index 1a20c0a..be1bf31 100644
--- a/Exception.php
+++ b/Exception.php
@@ -36,16 +36,16 @@
namespace Hoa\Event;
-use Hoa\Core;
+use Hoa\Exception as HoaException;
/**
* Class \Hoa\Event\Exception.
*
- * Extending the \Hoa\Core\Exception class.
+ * Extending the \Hoa\Exception\Exception class.
*
* @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-class Exception extends Core\Exception
+class Exception extends HoaException
{
}
diff --git a/Test/Unit/Exception.php b/Test/Unit/Exception.php
index 34fe2f4..7f752e2 100644
--- a/Test/Unit/Exception.php
+++ b/Test/Unit/Exception.php
@@ -55,6 +55,6 @@ class Exception extends Test\Unit\Suite
->when($result = new SUT('foo', 0))
->then
->object($result)
- ->isInstanceOf('Hoa\Core\Exception');
+ ->isInstanceOf('Hoa\Exception\Exception');
}
}
diff --git a/composer.json b/composer.json
index f57154c..74a521c 100644
--- a/composer.json
+++ b/composer.json
@@ -21,7 +21,8 @@
"source": "http://git.hoa-project.net/"
},
"require": {
- "hoa/core": "~2.0"
+ "hoa/core" : "~2.0",
+ "hoa/exception": "~0.0"
},
"require-dev": {
"hoa/test": "~1.0"