summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/str_split_variation6_64bit.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/strings/str_split_variation6_64bit.phpt')
-rw-r--r--ext/standard/tests/strings/str_split_variation6_64bit.phpt22
1 files changed, 10 insertions, 12 deletions
diff --git a/ext/standard/tests/strings/str_split_variation6_64bit.phpt b/ext/standard/tests/strings/str_split_variation6_64bit.phpt
index 583c7db3cf..e6893e9263 100644
--- a/ext/standard/tests/strings/str_split_variation6_64bit.phpt
+++ b/ext/standard/tests/strings/str_split_variation6_64bit.phpt
@@ -36,17 +36,19 @@ $values = array (
//loop through each element of $values for 'split_length'
for($count = 0; $count < count($values); $count++) {
- echo "-- Iteration ".($count + 1)." --\n";
- var_dump( str_split($str, $values[$count]) );
+ echo "-- Iteration ".($count + 1)." --\n";
+ try {
+ var_dump( str_split($str, $values[$count]) );
+ } catch (\Error $e) {
+ echo $e->getMessage() . "\n";
+ }
}
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing str_split() : different intger values for 'split_length' ***
-- Iteration 1 --
-
-Warning: str_split(): The length of each segment must be greater than zero in %s on line %d
-bool(false)
+The length of each segment must be greater than zero
-- Iteration 2 --
array(42) {
[0]=>
@@ -135,9 +137,7 @@ array(42) {
string(1) "t"
}
-- Iteration 3 --
-
-Warning: str_split(): The length of each segment must be greater than zero in %s on line %d
-bool(false)
+The length of each segment must be greater than zero
-- Iteration 4 --
array(1) {
[0]=>
@@ -161,7 +161,5 @@ array(1) {
string(42) "This is a string with 123 & escape char \t"
}
-- Iteration 8 --
-
-Warning: str_split(): The length of each segment must be greater than zero in %s on line %d
-bool(false)
+The length of each segment must be greater than zero
Done