replace Exception on GeneralException (Config.php)
This commit is contained in:
@ -33,7 +33,7 @@ class ConfigArray extends ArrayObject
|
|||||||
public function offsetGet($index)
|
public function offsetGet($index)
|
||||||
{
|
{
|
||||||
if (!$this->offsetExists($index)) {
|
if (!$this->offsetExists($index)) {
|
||||||
throw new Exception('Configuration variable "' . $index . '" undefined');
|
throw new GeneralException('Configuration variable "' . $index . '" undefined');
|
||||||
}
|
}
|
||||||
return parent::offsetGet($index);
|
return parent::offsetGet($index);
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<php>
|
<php>
|
||||||
<var name="DB_DSN" value="mysql:dbname=testdb;host=localhost" />
|
<var name="DB_DSN" value="mysql:dbname=testdb;host=localhost" />
|
||||||
<var name="DB_USER" value="root" />
|
<var name="DB_USER" value="root" />
|
||||||
<var name="DB_PASSWD" value="1234" />
|
<var name="DB_PASSWD" value="151001" />
|
||||||
<var name="DB_DBNAME" value="testdb" />
|
<var name="DB_DBNAME" value="testdb" />
|
||||||
</php>
|
</php>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
Reference in New Issue
Block a user