summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorFabien Villepinte <fabien.villepinte@gmail.com>2019-11-07 21:31:47 +0100
committerFabien Villepinte <fabien.villepinte@gmail.com>2019-11-07 21:31:47 +0100
commita555cc0b3d4f745e6d0bb8c595de400a0c728827 (patch)
tree61afac4216a8e7e629a878b8a873d8b32b7cf4a4 /ext/pcre
parent80cfd990740aef314b7943a3fa18c27a23f40566 (diff)
downloadphp-git-a555cc0b3d4f745e6d0bb8c595de400a0c728827.tar.gz
Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/tests/bug75207.phpt2
-rw-r--r--ext/pcre/tests/bug76512.phpt2
-rw-r--r--ext/pcre/tests/bug76850.phpt2
-rw-r--r--ext/pcre/tests/bug77193.phpt2
-rw-r--r--ext/pcre/tests/bug77827.phpt2
-rw-r--r--ext/pcre/tests/no_jit_bug70110.phpt2
-rw-r--r--ext/pcre/tests/pcre.constants.phpt2
-rw-r--r--ext/pcre/tests/preg_filter.phpt2
-rw-r--r--ext/pcre/tests/preg_match_basic_002.phpt2
-rw-r--r--ext/pcre/tests/preg_match_error4.phpt2
-rw-r--r--ext/pcre/tests/preg_match_variation1.phpt2
-rw-r--r--ext/pcre/tests/preg_replace2.phpt3
-rw-r--r--ext/pcre/tests/preg_replace_callback_error1.phpt2
13 files changed, 0 insertions, 27 deletions
diff --git a/ext/pcre/tests/bug75207.phpt b/ext/pcre/tests/bug75207.phpt
index 82b2cc9bd9..ea25c547c1 100644
--- a/ext/pcre/tests/bug75207.phpt
+++ b/ext/pcre/tests/bug75207.phpt
@@ -4,7 +4,5 @@ CVE-2016-1283, see bug #75207
<?php
preg_match("/š(?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'\){97)?J)?J)(?'R'(?'R'\){99|(:(?|(?'R')(\k'R')|((?'R')))H'R'R)(H'R))))))/", "*b\dc");
?>
-==DONE==
--EXPECTF--
Warning: preg_match(): Compilation failed: unmatched closing parenthesis at offset %d in %s on line %d
-==DONE==
diff --git a/ext/pcre/tests/bug76512.phpt b/ext/pcre/tests/bug76512.phpt
index cb8a9fa95f..3090291736 100644
--- a/ext/pcre/tests/bug76512.phpt
+++ b/ext/pcre/tests/bug76512.phpt
@@ -4,7 +4,5 @@ Bug #76512 (\w no longer includes unicode characters)
<?php
var_dump(preg_match('/\w/u', 'ä'));
?>
-===DONE===
--EXPECT--
int(1)
-===DONE===
diff --git a/ext/pcre/tests/bug76850.phpt b/ext/pcre/tests/bug76850.phpt
index 3e07ab7aa8..50c62ad1b3 100644
--- a/ext/pcre/tests/bug76850.phpt
+++ b/ext/pcre/tests/bug76850.phpt
@@ -21,7 +21,5 @@ foo();
var_dump(preg_match('/./', "a"));
?>
-==DONE==
--EXPECT--
int(1)
-==DONE==
diff --git a/ext/pcre/tests/bug77193.phpt b/ext/pcre/tests/bug77193.phpt
index 5dc7913db2..e143841e83 100644
--- a/ext/pcre/tests/bug77193.phpt
+++ b/ext/pcre/tests/bug77193.phpt
@@ -21,7 +21,5 @@ preg_replace_callback(
);
echo '3', "\n";
?>
-===DONE===
--EXPECT--
123
-===DONE===
diff --git a/ext/pcre/tests/bug77827.phpt b/ext/pcre/tests/bug77827.phpt
index c8f8c7a16a..ebb5d8b228 100644
--- a/ext/pcre/tests/bug77827.phpt
+++ b/ext/pcre/tests/bug77827.phpt
@@ -7,8 +7,6 @@ var_dump(
preg_last_error()
);
?>
-===DONE===
--EXPECT--
int(1)
int(0)
-===DONE===
diff --git a/ext/pcre/tests/no_jit_bug70110.phpt b/ext/pcre/tests/no_jit_bug70110.phpt
index fa673ac935..aece155257 100644
--- a/ext/pcre/tests/no_jit_bug70110.phpt
+++ b/ext/pcre/tests/no_jit_bug70110.phpt
@@ -9,8 +9,6 @@ var_dump(preg_match('/(*NO_JIT)^(A{1,2}B)+$$/',str_repeat('AB',8192)));
var_dump(preg_match('~(*NO_JIT)(a)*~', str_repeat('a', 5431), $match))
?>
-==DONE==
--EXPECT--
int(1)
int(1)
-==DONE==
diff --git a/ext/pcre/tests/pcre.constants.phpt b/ext/pcre/tests/pcre.constants.phpt
index 5abc6c72c2..d58454c225 100644
--- a/ext/pcre/tests/pcre.constants.phpt
+++ b/ext/pcre/tests/pcre.constants.phpt
@@ -18,7 +18,6 @@ echo "PREG_RECURSION_LIMIT_ERROR= ", PREG_RECURSION_LIMIT_ERROR, "\n";
echo "PREG_BAD_UTF8_ERROR= ", PREG_BAD_UTF8_ERROR, "\n";
?>
-===Done===
--EXPECT--
PCRE constants test
PREG_PATTERN_ORDER= 1
@@ -32,4 +31,3 @@ PREG_INTERNAL_ERROR= 1
PREG_BACKTRACK_LIMIT_ERROR= 2
PREG_RECURSION_LIMIT_ERROR= 3
PREG_BAD_UTF8_ERROR= 4
-===Done===
diff --git a/ext/pcre/tests/preg_filter.phpt b/ext/pcre/tests/preg_filter.phpt
index 6cd9802575..1625fc8450 100644
--- a/ext/pcre/tests/preg_filter.phpt
+++ b/ext/pcre/tests/preg_filter.phpt
@@ -10,7 +10,6 @@ $replace = array('A:$0', 'B:$0', 'C:$0');
var_dump(preg_filter($pattern, $replace, $subject));
?>
-===DONE===
--EXPECT--
array(6) {
[0]=>
@@ -26,4 +25,3 @@ array(6) {
[7]=>
string(3) "A:4"
}
-===DONE===
diff --git a/ext/pcre/tests/preg_match_basic_002.phpt b/ext/pcre/tests/preg_match_basic_002.phpt
index bca8f3e3c5..7aa125bda0 100644
--- a/ext/pcre/tests/preg_match_basic_002.phpt
+++ b/ext/pcre/tests/preg_match_basic_002.phpt
@@ -12,7 +12,6 @@ preg_match("/M(.*)/", $string, $matches);
var_dump($matches);
?>
-===Done===
--EXPECT--
array(2) {
[0]=>
@@ -20,4 +19,3 @@ array(2) {
[1]=>
string(1) "y"
}
-===Done===
diff --git a/ext/pcre/tests/preg_match_error4.phpt b/ext/pcre/tests/preg_match_error4.phpt
index 06aa82b469..361ea81ab9 100644
--- a/ext/pcre/tests/preg_match_error4.phpt
+++ b/ext/pcre/tests/preg_match_error4.phpt
@@ -929,7 +929,5 @@ if($count === false) {
var_dump("Done, $count matches.");
}
?>
-==DONE==
--EXPECT--
string(16) "Done, 1 matches."
-==DONE==
diff --git a/ext/pcre/tests/preg_match_variation1.phpt b/ext/pcre/tests/preg_match_variation1.phpt
index 5fa50ce49c..91c7841ff7 100644
--- a/ext/pcre/tests/preg_match_variation1.phpt
+++ b/ext/pcre/tests/preg_match_variation1.phpt
@@ -13,10 +13,8 @@ $string = "-1";
preg_match('/[\-\+]?[0-9\.]*/', $string, $string);
var_dump($string);
?>
-===Done===
--EXPECT--
array(1) {
[0]=>
string(2) "-1"
}
-===Done===
diff --git a/ext/pcre/tests/preg_replace2.phpt b/ext/pcre/tests/preg_replace2.phpt
index 13696827fb..ac88e876e6 100644
--- a/ext/pcre/tests/preg_replace2.phpt
+++ b/ext/pcre/tests/preg_replace2.phpt
@@ -16,8 +16,6 @@ var_dump(preg_replace(array('/\da(.)/ui', '@(.)@'), '$1', array('x','a2aA', '1av
var_dump(preg_replace(array('/[\w]+/'), array('$'), array('xyz', 'bdbd')));
var_dump(preg_replace(array('/\s+/', '~[b-d]~'), array('$'), array('x y', 'bd bc')));
-echo "==done==\n";
-
?>
--EXPECT--
string(1) "c"
@@ -41,4 +39,3 @@ array(2) {
[1]=>
string(1) "$"
}
-==done==
diff --git a/ext/pcre/tests/preg_replace_callback_error1.phpt b/ext/pcre/tests/preg_replace_callback_error1.phpt
index cf069692e8..120944b33b 100644
--- a/ext/pcre/tests/preg_replace_callback_error1.phpt
+++ b/ext/pcre/tests/preg_replace_callback_error1.phpt
@@ -26,7 +26,6 @@ foreach($regex_array as $regex_value) {
var_dump(preg_replace_callback($regex_value, 'integer_word', $subject));
}
?>
-===Done===
--EXPECTF--
*** Testing preg_replace_callback() : error conditions ***
@@ -55,4 +54,3 @@ string(9) "number 1."
Arg value is /[0-9]/
string(11) "number one."
-===Done===