From 0552c15141bd89b422b40fdae2a9c08eb8639b3b Mon Sep 17 00:00:00 2001 From: Vyacheslav Agafonov Date: Mon, 28 Nov 2011 16:41:40 +0400 Subject: [PATCH] replace Exception on GeneralException (Config.php) --- Config.php | 2 +- tests/phpunit.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Config.php b/Config.php index 9608dba..c496673 100644 --- a/Config.php +++ b/Config.php @@ -33,7 +33,7 @@ class ConfigArray extends ArrayObject public function offsetGet($index) { if (!$this->offsetExists($index)) { - throw new Exception('Configuration variable "' . $index . '" undefined'); + throw new GeneralException('Configuration variable "' . $index . '" undefined'); } return parent::offsetGet($index); } diff --git a/tests/phpunit.xml b/tests/phpunit.xml index fd981a7..cea5120 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -26,7 +26,7 @@ - +