Skip to content

Commit b95317f

Browse files
committed
More string test fixes
1 parent 6de9417 commit b95317f

24 files changed

+71
-197
lines changed

ext/standard/tests/strings/convert_cyr_string.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ basic convert_cyr_string() tests
44
<?php
55

66
var_dump(convert_cyr_string("", "", ""));
7-
var_dump(convert_cyr_string(array(), array(), array()));
87

98
var_dump(convert_cyr_string("[[[[[[", "q", "m"));
109
var_dump(convert_cyr_string("[[[[[[", "k", "w"));
@@ -22,9 +21,6 @@ Warning: convert_cyr_string(): Unknown source charset: in %s on line %d
2221
Warning: convert_cyr_string(): Unknown destination charset: in %s on line %d
2322
string(0) ""
2423

25-
Warning: convert_cyr_string() expects parameter 1 to be string, array given in %s on line %d
26-
NULL
27-
2824
Warning: convert_cyr_string(): Unknown source charset: q in %s on line %d
2925
string(6) "[[[[[["
3026
string(6) "[[[[[["

ext/standard/tests/strings/explode1.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,5 +493,4 @@ array(2) {
493493
[1]=>
494494
string(4) "ject"
495495
}
496-
497496
Done
-243 Bytes
Binary file not shown.

ext/standard/tests/strings/levenshtein.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ echo ($n==0)?"all passed\n":"$n failed\n";
6565

6666
var_dump(levenshtein("", "", -1, -1, -1));
6767
var_dump(levenshtein("", "", 10, 10, 10));
68-
var_dump(levenshtein(""));
6968

7069
?>
7170
--EXPECTF--
@@ -77,6 +76,3 @@ Warning: levenshtein(): Argument string(s) too long in %s on line %d
7776
all passed
7877
int(0)
7978
int(0)
80-
81-
Warning: Wrong parameter count for levenshtein() in %s on line %d
82-
NULL

ext/standard/tests/strings/printf_error.phpt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ echo "*** Testing printf() : error conditions ***\n";
1111

1212
// Zero arguments
1313
echo "\n-- Testing printf() function with Zero arguments --\n";
14-
var_dump( printf() );
14+
try {
15+
var_dump( printf() );
16+
} catch (TypeError $e) {
17+
echo $e->getMessage(), "\n";
18+
}
1519

1620
echo "\n-- Testing printf() function with less than expected no. of arguments --\n";
1721
$format1 = '%s';
@@ -38,9 +42,7 @@ var_dump( printf($format3) );
3842
*** Testing printf() : error conditions ***
3943

4044
-- Testing printf() function with Zero arguments --
41-
42-
Warning: printf() expects at least 1 parameter, 0 given in %s on line %d
43-
bool(false)
45+
printf() expects at least 1 parameter, 0 given
4446

4547
-- Testing printf() function with less than expected no. of arguments --
4648

ext/standard/tests/strings/quoted_printable_encode_001.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ var_dump(quoted_printable_encode(false));
1212

1313
echo "Done\n";
1414
?>
15-
--EXPECTF--
15+
--EXPECT--
1616
string(0) ""
1717
string(4) "test"
18-
1918
string(1) "1"
2019
string(0) ""
2120
string(0) ""
-1 Bytes
Binary file not shown.
-12.5 KB
Binary file not shown.
-160 Bytes
Binary file not shown.
-152 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)