Skip to content

Commit e8fd07a

Browse files
committed
Fix test
1 parent 87f4698 commit e8fd07a

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

ext/intl/tests/grapheme2.phpt

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ function ut_main()
416416
}
417417
$res_str .= " == " . urlencode($test[count($test)-1]) . check_result($result, $test[count($test)-1]) . "\n";
418418
} catch (ValueError $exception) {
419-
echo $exception->getMessage() . "\n";
419+
$res_str .= ": " . $exception->getMessage() . "\n";
420420
}
421421
}
422422

@@ -786,15 +786,6 @@ function check_result($result, $expected) {
786786

787787
?>
788788
--EXPECT--
789-
grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
790-
grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
791-
grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
792-
grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
793-
grapheme_substr(): Argument #3 ($length) must be contained in argument #1 ($string)
794-
grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
795-
grapheme_substr(): Argument #3 ($length) must be contained in argument #1 ($string)
796-
grapheme_substr(): Argument #3 ($length) must be contained in argument #1 ($string)
797-
798789
function grapheme_strlen($string) {}
799790

800791
"hindi" in devanagari strlen 2
@@ -970,7 +961,7 @@ find "a%CC%8ABca%CC%8A" in "o%CC%88a%CC%8AaA%CC%8AbCa%CC%8Adef" - grapheme_strri
970961

971962
function grapheme_substr($string, $start, $length = -1) {}
972963

973-
substring of "abc" from "3" - grapheme_substr = false == false
964+
substring of "abc" from "3" - grapheme_substr: grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
974965
substring of "aa%CC%8Abco%CC%88" from "5" - grapheme_substr = false == false
975966
substring of "aoa%CC%8Abco%CC%88O" from "2" - grapheme_substr = a%CC%8Abco%CC%88O == a%CC%8Abco%CC%88O
976967
substring of "o%CC%88a%CC%8AaA%CC%8Abc" from "2" - grapheme_substr = aA%CC%8Abc == aA%CC%8Abc
@@ -979,14 +970,14 @@ substring of "aa%CC%8Abco%CC%88" from "5" - grapheme_substr = false == false
979970
substring of "aa%CC%8AbcO%CC%88" from "4" - grapheme_substr = O%CC%88 == O%CC%88
980971
substring of "o%CC%88aa%CC%8Abc" from "2" - grapheme_substr = a%CC%8Abc == a%CC%8Abc
981972
substring of "aA%CC%8Abc" from "1" - grapheme_substr = A%CC%8Abc == A%CC%8Abc
982-
substring of "Abc" from "-5" - grapheme_substr = false == false
973+
substring of "Abc" from "-5" - grapheme_substr: grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
983974
substring of "a%CC%8Abc" from "3" - grapheme_substr = false == false
984-
substring of "abc" from "4" - grapheme_substr = false == false
975+
substring of "abc" from "4" - grapheme_substr: grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
985976
substring of "abC" from "2" - grapheme_substr = C == C
986977
substring of "abc" from "1" - grapheme_substr = bc == bc
987978
substring of "Abc" from "1" - grapheme_substr with length 1 = b == b
988979
substring of "abc" from "0" - grapheme_substr with length 2 = ab == ab
989-
substring of "Abc" from "-4" - grapheme_substr with length 1 = false == false
980+
substring of "Abc" from "-4" - grapheme_substr with length 1: grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
990981
substring of "ababc" from "1" - grapheme_substr with length 2 = ba == ba
991982
substring of "ababc" from "0" - grapheme_substr with length 10 = ababc == ababc
992983
substring of "aa%CC%8Abco%CC%88Opq" from "0" - grapheme_substr with length 10 = aa%CC%8Abco%CC%88Opq == aa%CC%8Abco%CC%88Opq
@@ -1004,7 +995,7 @@ substring of "aa%CC%8Abco%CC%88Opq" from "0" - grapheme_substr with length -5 =
1004995
substring of "aa%CC%8Abco%CC%88Opq" from "0" - grapheme_substr with length -6 = aa%CC%8A == aa%CC%8A
1005996
substring of "aa%CC%8Abco%CC%88Opq" from "0" - grapheme_substr with length -7 = a == a
1006997
substring of "aa%CC%8Abco%CC%88Opq" from "0" - grapheme_substr with length -8 = ==
1007-
substring of "aa%CC%8Abco%CC%88Opq" from "0" - grapheme_substr with length -9 = false == false
998+
substring of "aa%CC%8Abco%CC%88Opq" from "0" - grapheme_substr with length -9: grapheme_substr(): Argument #3 ($length) must be contained in argument #1 ($string)
1008999
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr = aa%CC%8Abco%CC%88Opq == aa%CC%8Abco%CC%88Opq
10091000
substring of "aa%CC%8Abco%CC%88Opq" from "-7" - grapheme_substr = a%CC%8Abco%CC%88Opq == a%CC%8Abco%CC%88Opq
10101001
substring of "aa%CC%8Abco%CC%88Opq" from "-6" - grapheme_substr = bco%CC%88Opq == bco%CC%88Opq
@@ -1013,7 +1004,7 @@ substring of "aa%CC%8Abco%CC%88Opq" from "-4" - grapheme_substr = o%CC%88Opq ==
10131004
substring of "aa%CC%8Abco%CC%88Opq" from "-3" - grapheme_substr = Opq == Opq
10141005
substring of "aa%CC%8Abco%CC%88Opq" from "-2" - grapheme_substr = pq == pq
10151006
substring of "aa%CC%8Abco%CC%88Opq" from "-1" - grapheme_substr = q == q
1016-
substring of "aa%CC%8Abco%CC%88Opq" from "-999" - grapheme_substr = false == false
1007+
substring of "aa%CC%8Abco%CC%88Opq" from "-999" - grapheme_substr: grapheme_substr(): Argument #2 ($start) must be contained in argument #1 ($string)
10171008
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length 8 = aa%CC%8Abco%CC%88Opq == aa%CC%8Abco%CC%88Opq
10181009
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length 7 = aa%CC%8Abco%CC%88Op == aa%CC%8Abco%CC%88Op
10191010
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length 6 = aa%CC%8Abco%CC%88O == aa%CC%8Abco%CC%88O
@@ -1023,7 +1014,7 @@ substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length 3 =
10231014
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length 2 = aa%CC%8A == aa%CC%8A
10241015
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length 1 = a == a
10251016
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length 0 = ==
1026-
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -999 = false == false
1017+
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -999: grapheme_substr(): Argument #3 ($length) must be contained in argument #1 ($string)
10271018
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -1 = aa%CC%8Abco%CC%88Op == aa%CC%8Abco%CC%88Op
10281019
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -2 = aa%CC%8Abco%CC%88O == aa%CC%8Abco%CC%88O
10291020
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -3 = aa%CC%8Abco%CC%88 == aa%CC%8Abco%CC%88
@@ -1032,7 +1023,7 @@ substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -5 =
10321023
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -6 = aa%CC%8A == aa%CC%8A
10331024
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -7 = a == a
10341025
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -8 = ==
1035-
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -9 = false == false
1026+
substring of "aa%CC%8Abco%CC%88Opq" from "-8" - grapheme_substr with length -9: grapheme_substr(): Argument #3 ($length) must be contained in argument #1 ($string)
10361027

10371028
function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {}
10381029

0 commit comments

Comments
 (0)