summaryrefslogtreecommitdiff
path: root/ext/intl/tests/resourcebundle_individual.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/tests/resourcebundle_individual.phpt')
-rw-r--r--ext/intl/tests/resourcebundle_individual.phpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/intl/tests/resourcebundle_individual.phpt b/ext/intl/tests/resourcebundle_individual.phpt
index 46ce239e4d..46481dc0d6 100644
--- a/ext/intl/tests/resourcebundle_individual.phpt
+++ b/ext/intl/tests/resourcebundle_individual.phpt
@@ -28,6 +28,10 @@ function ut_main() {
$t = ut_resourcebundle_get( $r, 'nonexisting' );
$str_res .= debug( $t );
+ // Make sure accessing existing after non-existing works.
+ $t = ut_resourcebundle_get( $r, 'teststring' );
+ $str_res .= debug( $t );
+
return $str_res;
}
include_once( 'ut_common.inc' );
@@ -55,3 +59,5 @@ testtable: 3
testarray: string 3
NULL
2: Cannot load resource element 'nonexisting': U_MISSING_RESOURCE_ERROR
+Hello World!
+ 0: U_ZERO_ERROR