aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-11-20 07:40:34 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-01-11 09:33:01 +0100
commitae309c099c8f665805d41c0ca5adb5b63c2165d4 (patch)
treefc75e5d61dd6a5891b8b96c13ad9628c78360772
parent033c6732c3c888cf927b84f5c38733ff0d0dd254 (diff)
downloadEvent-ae309c099c8f665805d41c0ca5adb5b63c2165d4.zip
Event-ae309c099c8f665805d41c0ca5adb5b63c2165d4.tar.gz
Event-ae309c099c8f665805d41c0ca5adb5b63c2165d4.tar.bz2
Exception: Use `Hoa\Exception`.
The core is being splitted into several libraries. `Hoa\Exception` is one of them.
-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"