Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed locale exception references in zend\currency

  • Loading branch information...
commit d7d4278945f2f9c028afdaa3411c40df9782ad12 1 parent d62f21a
@prolic prolic authored
View
4 library/Zend/Currency/Currency.php
@@ -543,7 +543,7 @@ public function setLocale($locale = null)
} else {
throw new Exception\InvalidArgumentException("No region found within the locale '" . (string) $locale . "'");
}
- } catch (Locale\Exception $e) {
+ } catch (Locale\Exception\ExceptionInterface $e) {
throw new Exception\InvalidArgumentException($e->getMessage());
}
@@ -857,7 +857,7 @@ protected function _checkOptions(array $options = array())
case 'script':
try {
Locale\Format::convertNumerals(0, $options['script']);
- } catch (Locale\Exception $e) {
+ } catch (Locale\Exception\ExceptionInterface $e) {
throw new Exception\InvalidArgumentException($e->getMessage());
}
break;
View
6 tests/Zend/Currency/CurrencyTest.php
@@ -55,7 +55,7 @@ public function testSingleCreation()
// look if locale is detectable
try {
$locale = new Locale\Locale();
- } catch (Locale\Exception $e) {
+ } catch (Locale\Exception\ExceptionInterface $e) {
$this->markTestSkipped('Autodetection of locale failed');
return;
}
@@ -476,7 +476,7 @@ public function testGetRegionList()
// look if locale is detectable
try {
$locale = new Locale\Locale();
- } catch (Locale\Exception $e) {
+ } catch (Locale\Exception\ExceptionInterface $e) {
$this->markTestSkipped('Autodetection of locale failed');
return;
}
@@ -510,7 +510,7 @@ public function testGetCurrencyList()
// look if locale is detectable
try {
$locale = new Locale\Locale();
- } catch (Locale\Exception $e) {
+ } catch (Locale\Exception\ExceptionInterface $e) {
$this->markTestSkipped('Autodetection of locale failed');
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.