Skip to content

Commit 737b20f

Browse files
committed
ext/standard/tests/strings: W.I.P. Fix tests and remove ZPP tests
1 parent 67af7c3 commit 737b20f

12 files changed

+53
-452
lines changed

ext/standard/tests/strings/bug20927.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $linelength = 10;
99
echo "Length of original string: ".strlen($string)."\n";
1010
echo "Length of break string: ".strlen($break)."\n";
1111

12-
var_dump(wordwrap($string, $linelength, $break, 1));
12+
var_dump(wordwrap($string, $linelength, $break, true));
1313
?>
1414
--EXPECT--
1515
Length of original string: 130

ext/standard/tests/strings/bug33605.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Bug #33605 (substr_compare crashes)
33
--FILE--
44
<?php
55
try {
6-
substr_compare("aa", "a", -99999999, -1, 0);
6+
substr_compare("aa", "a", -99999999, -1, false);
77
} catch (\ValueError $e) {
88
echo $e->getMessage();
99
}

ext/standard/tests/strings/chop_variation5.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ echo "*** Testing chop() : with miscellaneous arguments ***\n";
1010

1111
var_dump ( chop("chop test \t\0 ") ); /* without second Argument */
1212
var_dump ( chop("chop test " , "") ); /* no characters in second Argument */
13-
var_dump ( chop("chop test ", true) ); /* with boolean value as second Argument */
1413
var_dump ( chop("chop test ", " ") ); /* with single space as second Argument */
1514
var_dump ( chop("chop test \t\n\r\0\x0B", "\t\n\r\0\x0B") ); /* with multiple escape sequences as second Argument */
1615
var_dump ( chop("chop testABCXYZ", "A..Z") ); /* with characters range as second Argument */
@@ -23,7 +22,6 @@ echo "Done\n";
2322
*** Testing chop() : with miscellaneous arguments ***
2423
string(9) "chop test"
2524
string(12) "chop test "
26-
string(17) "chop test "
2725
string(9) "chop test"
2826
string(10) "chop test "
2927
string(9) "chop test"

ext/standard/tests/strings/chr_variation1.phpt

Lines changed: 0 additions & 77 deletions
This file was deleted.

ext/standard/tests/strings/join_variation1.phpt

Lines changed: 0 additions & 133 deletions
This file was deleted.

ext/standard/tests/strings/join_variation4.phpt

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)