summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fixedarray_005.phpt
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-06-17 21:55:03 +0200
committerAnatol Belski <ab@php.net>2015-06-17 21:55:03 +0200
commit269acaa363cab7de8705b060ba9b1e32322fb0f4 (patch)
tree66efcef9cde9f20638c82e6db33f1d281e9f3eff /ext/spl/tests/fixedarray_005.phpt
parent7db113fad106559a1335fea48d622d12d0e32f55 (diff)
parentc5eb924e9e43c59b564549e149b59ad9a4bee74a (diff)
downloadphp-git-269acaa363cab7de8705b060ba9b1e32322fb0f4.tar.gz
Merge branch 'pull-request/1284'
* pull-request/1284: Rename interface macros Fix typo in UPGRADING Move definition of Throwable to zend_exceptions.h/c Check for zend_ce_throwable instead Fix some missed tests Add Throwable tests Fix previous exception type check Updated UPGRADING with RFC link Changed AssertionException to AssertionError Update exception error messages Throwable method signatures. Update exception names in tests after formatting changes. Merge exception formatting changes. Make zend_get_exception_base static. Fix a few missed tests. Fix handler double copy. Updated tests to reflect exception class changes. Remodel exceptions based on Throwable interface
Diffstat (limited to 'ext/spl/tests/fixedarray_005.phpt')
-rw-r--r--ext/spl/tests/fixedarray_005.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/spl/tests/fixedarray_005.phpt b/ext/spl/tests/fixedarray_005.phpt
index 83727a23b9..cc64fd01b0 100644
--- a/ext/spl/tests/fixedarray_005.phpt
+++ b/ext/spl/tests/fixedarray_005.phpt
@@ -5,19 +5,19 @@ SPL: FixedArray: Invalid arguments
try {
$a = new SplFixedArray(new stdClass);
-} catch (TypeException $iae) {
+} catch (TypeError $iae) {
echo "Ok - ".$iae->getMessage().PHP_EOL;
}
try {
$a = new SplFixedArray('FOO');
-} catch (TypeException $iae) {
+} catch (TypeError $iae) {
echo "Ok - ".$iae->getMessage().PHP_EOL;
}
try {
$a = new SplFixedArray('');
-} catch (TypeException $iae) {
+} catch (TypeError $iae) {
echo "Ok - ".$iae->getMessage().PHP_EOL;
}