diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2015-05-16 16:49:14 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2015-05-16 16:49:14 -0500 |
commit | 64b167d201e567ec213b5aa37c66536621835331 (patch) | |
tree | 272d6f3951625ef7bc82eba08bad64aef9b883d2 /ext/intl/tests/formatter_fail.phpt | |
parent | d042d0880796cfe99262bb6fa44225e984c63ace (diff) | |
download | php-git-64b167d201e567ec213b5aa37c66536621835331.tar.gz |
Updated tests to reflect exception class changes.
Diffstat (limited to 'ext/intl/tests/formatter_fail.phpt')
-rw-r--r-- | ext/intl/tests/formatter_fail.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/intl/tests/formatter_fail.phpt b/ext/intl/tests/formatter_fail.phpt index f7761173dd..2e3360f3c7 100644 --- a/ext/intl/tests/formatter_fail.phpt +++ b/ext/intl/tests/formatter_fail.phpt @@ -45,7 +45,7 @@ $args = array( try { $fmt = new NumberFormatter(); -} catch (TypeException $e) { +} catch (TypeError $e) { print_exception($e); $fmt = null; } @@ -66,7 +66,7 @@ foreach($args as $arg) { ?> --EXPECTF-- -TypeException: NumberFormatter::__construct() expects at least 2 parameters, 0 given in %s on line %d +TypeError: NumberFormatter::__construct() expects at least 2 parameters, 0 given in %s on line %d 'numfmt_create: unable to parse input parameters: U_ILLEGAL_ARGUMENT_ERROR' Warning: numfmt_create() expects at least 2 parameters, 0 given in %s on line %d @@ -80,7 +80,7 @@ IntlException: Constructor failed in %sformatter_fail.php on line %d 'numfmt_create: number formatter creation failed: U_UNSUPPORTED_ERROR' 'numfmt_create: number formatter creation failed: U_UNSUPPORTED_ERROR' -TypeException: NumberFormatter::__construct() expects parameter 1 to be string, array given in %s on line %d +TypeError: NumberFormatter::__construct() expects parameter 1 to be string, array given in %s on line %d 'numfmt_create: unable to parse input parameters: U_ILLEGAL_ARGUMENT_ERROR' Warning: NumberFormatter::create() expects parameter 1 to be string, array given in %s on line %d |