Skip to content

Commit a555cc0

Browse files
committed
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.
1 parent 80cfd99 commit a555cc0

File tree

2,693 files changed

+51
-5648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,693 files changed

+51
-5648
lines changed

Zend/tests/019.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ var_dump($global_var);
360360
//Note: No error conditions relating to passing arguments can be tested
361361
// because these are not functions but statements, it will result in syntax error.
362362
?>
363-
===DONE===
364363
--EXPECTF--
365364
*** Testing unset(), empty() & isset() with scalar variables ***
366365
-- Iteration 1 --
@@ -1330,4 +1329,3 @@ bool(false)
13301329
bool(false)
13311330
bool(true)
13321331
int(10)
1333-
===DONE===

Zend/tests/bug26166.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ try {
6161
}
6262

6363
?>
64-
===DONE===
6564
--EXPECT--
6665
Hello World!
6766
===NONE===
6867
Method NoneTest::__toString() must return a string value
6968
===THROW===
7069
This is an error!
71-
===DONE===

Zend/tests/bug26229.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,5 @@ catch(Exception $e)
2323
echo $e->getMessage() . "\n";
2424
}
2525
?>
26-
===DONE===
2726
--EXPECT--
2827
Objects returned by array_iterator::getIterator() must be traversable or implement interface Iterator
29-
===DONE===

Zend/tests/bug26696.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ for ($i = 0; $i < $len; $i++) {
1616
}
1717

1818
?>
19-
===DONE===
2019
--EXPECT--
2120
a-s-d-d-/-?+
22-
===DONE===

Zend/tests/bug26697.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ spl_autoload_register(function ($name) {
1212
var_dump(class_exists('NotExistingClass'));
1313

1414
?>
15-
===DONE===
1615
--EXPECT--
1716
{closure}(NotExistingClass)
1817
bool(false)
1918
{closure}(NotExistingClass), done
2019
bool(false)
21-
===DONE===

Zend/tests/bug26698.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ $p->callOne();
6565
$p->callTwo();
6666
$p->callThree();
6767
?>
68-
===DONE===
6968
--EXPECT--
7069
Caught: NONE
7170
Caught: NONE
7271
Caught: NONE
73-
===DONE===

Zend/tests/bug26802.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ foo::$method();
3030

3131

3232
?>
33-
===DONE===
3433
--EXPECT--
3534
global_func
3635
foo::foo_func
37-
===DONE===

Zend/tests/bug27304.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Staticexample::test();
1616
$b->test();
1717

1818
?>
19-
===DONE===
2019
--EXPECT--
2120
bool(false)
2221
bool(false)
23-
===DONE===

Zend/tests/bug27669.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dy
1010
$y[0] = 'hello';
1111
A::{$y[0]}();
1212
?>
13-
===DONE===
1413
--EXPECTF--
1514
Hello World
16-
===DONE===

Zend/tests/bug27798.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ var_dump(get_object_vars(new Base));
3232
var_dump(get_object_vars(new Child));
3333

3434
?>
35-
===DONE===
3635
--EXPECT--
3736
Base::__construct
3837
array(3) {
@@ -69,4 +68,3 @@ array(1) {
6968
["Foo"]=>
7069
int(1)
7170
}
72-
===DONE===

Zend/tests/bug28442.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ var_dump(ClassB::$prop);
4444
var_dump(ClassC::$prop);
4545

4646
?>
47-
===DONE===
4847
--EXPECT--
4948
===INIT===
5049
string(1) "A"
@@ -62,4 +61,3 @@ string(2) "B2"
6261
string(2) "A2"
6362
string(2) "C2"
6463
string(2) "C2"
65-
===DONE===

Zend/tests/bug28444.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ var_dump($t->x = 5);
5252
var_dump($y->z->x = 6);
5353

5454
?>
55-
===DONE===
5655
--EXPECT--
5756
object(ObjectOne)#2 (1) {
5857
["x"]=>
@@ -75,4 +74,3 @@ Overloaded::__get(z)
7574
int(5)
7675
Overloaded::__get(z)
7776
int(6)
78-
===DONE===

Zend/tests/bug29368.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ try
2727
unset($bar);
2828

2929
?>
30-
===DONE===
3130
--EXPECT--
3231
Foo::__construct
3332
Caught exception!
34-
===DONE===

Zend/tests/bug29505.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class Test {
1111
var_dump(get_class_vars('Test'));
1212

1313
?>
14-
===DONE===
1514
--EXPECT--
1615
array(2) {
1716
["empty"]=>
@@ -28,4 +27,3 @@ array(2) {
2827
}
2928
}
3029
}
31-
===DONE===

Zend/tests/bug30162.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ $db = new hariCow;
4141

4242
var_dump($db);
4343
?>
44-
===DONE===
4544
--EXPECTF--
4645
Warning: Undefined variable: db in %s on line %d
4746
NULL
@@ -51,4 +50,3 @@ object(hariCow)#%d (2) {
5150
["y"]=>
5251
string(1) "y"
5352
}
54-
===DONE===

Zend/tests/bug30346.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,5 @@ echo $post[$id.'_show'];
1818
echo "\n";
1919

2020
?>
21-
===DONE===
2221
--EXPECT--
2322
page_show
24-
===DONE===

Zend/tests/bug30407.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ function haricow($a = 'one') {
1111
haricow();
1212
haricow();
1313
?>
14-
===DONE===
1514
--EXPECT--
1615
string(3) "one"
1716
string(3) "one"
18-
===DONE===

Zend/tests/bug30725.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,5 @@ catch(Exception $e)
2626
}
2727

2828
?>
29-
===DONE===
3029
--EXPECT--
3130
Caught
32-
===DONE===

Zend/tests/bug30998.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ set_error_handler('my_error');
1313

1414
$f = fopen("/tmp/blah", "r");
1515
?>
16-
===DONE===
1716
--EXPECTF--
1817
fopen(/tmp/blah): failed to open stream: %s (2) in %s:%d
1918

2019
Warning: fopen(/tmp/blah): failed to open stream: %s in %s on line %d
21-
===DONE===

Zend/tests/bug31102.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ while($test++ < 5)
3636
}
3737
?>
3838
===DONE===
39-
<?php exit(0); ?>
4039
--EXPECTF--
4140
{closure}(Test1,1)
4241
Caught: Test1::__construct

Zend/tests/bug31720.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ try {
1010
echo $e->getMessage(), "\n";
1111
}
1212
?>
13-
===DONE===
1413
--EXPECTF--
1514
Warning: Undefined variable: nonesuchvar in %s on line %d
1615
array_walk() expects parameter 2 to be a valid callback, first array member is not a valid class name or object
17-
===DONE===

Zend/tests/bug32226.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,5 @@ catch(Exception $e)
3030
}
3131

3232
?>
33-
===DONE===
3433
--EXPECT--
3534
Caught
36-
===DONE===

Zend/tests/bug32252.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ catch (Exception $e)
4040
}
4141

4242
?>
43-
===DONE===
4443
--EXPECT--
4544
Test::offsetSet(-1, 123)
4645
CAUGHT
47-
===DONE===

Zend/tests/bug32290.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ echo "\n===E===\n";
9494
var_dump($x->doSomethingStatic(1));
9595

9696
?>
97-
===DONE===
98-
<?php exit(0); ?>
9997
--EXPECT--
10098
===A===
10199
TestB::doSomething(1)
@@ -121,4 +119,3 @@ int(1)
121119
TestB::doSomethingStatic(1)
122120
TestA::doSomethingStatic(2)
123121
int(1)
124-
===DONE===

Zend/tests/bug37212.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ $B->copyValue($C);
3838
var_dump($B);
3939

4040
?>
41-
===DONE===
4241
--EXPECTF--
4342
object(B)#%d (1) {
4443
["value":protected]=>
@@ -52,4 +51,3 @@ object(B)#%d (1) {
5251
["value":protected]=>
5352
string(1) "C"
5453
}
55-
===DONE===

Zend/tests/bug37667.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ $obj->property[] = 2;
2626
var_dump($obj);
2727

2828
?>
29-
===DONE===
3029
--EXPECTF--
3130
string(3) "bar"
3231

@@ -50,4 +49,3 @@ object(Test)#%d (1) {
5049
string(3) "bar"
5150
}
5251
}
53-
===DONE===

Zend/tests/bug46196.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ function myErrorHandler($errno, $errstr, $errfile, $errline)
2222
}
2323

2424
?>
25-
===DONE===
2625
--EXPECT--
2726
*** Testing restore_error_handler() : error bug #46196 ***
2827
NULL
2928
bool(true)
3029
NULL
31-
===DONE===

Zend/tests/bug48215.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ class B extends A
2727
$b = new B();
2828
$b->A();
2929
?>
30-
===DONE===
3130
--EXPECT--
3231
B::__construct
3332
A::__construct
3433
B::A
3534
A::A
36-
===DONE===

Zend/tests/bug66015.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ class Test
2424
$test = new Test();
2525
?>
2626

27-
===DONE===
2827
--EXPECT--
2928
array (
3029
1 => 'first',
3130
2 => 'second',
3231
3 => 'third',
3332
4 => 4,
3433
)
35-
===DONE===

Zend/tests/bug68797.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ precision=17
77

88
echo 2.2250738585072012e-308, "\n";
99
?>
10-
==DONE==
1110
--EXPECT--
1211
2.2250738585072014E-308
13-
==DONE==

Zend/tests/bug71572.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ var_dump($str[3] = "");
1010
var_dump($str[10] = "");
1111
var_dump($str);
1212
?>
13-
==DONE==
1413
--EXPECTF--
1514
Warning: Cannot assign an empty string to a string offset in %s on line %d
1615
NULL
@@ -24,4 +23,3 @@ NULL
2423
Warning: Cannot assign an empty string to a string offset in %s on line %d
2524
NULL
2625
string(3) "abc"
27-
==DONE==

Zend/tests/bug72918.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ $string[-3]
1313
1414
EOT;
1515
?>
16-
===DONE===
1716
--EXPECT--
1817
foo
1918
c
2019
foo
2120
c
22-
===DONE===

Zend/tests/bug76965.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ END;
1515

1616
var_dump(parse_ini_string($ini, false, INI_SCANNER_RAW));
1717
?>
18-
===DONE===
1918
--EXPECT--
2019
array(7) {
2120
[1]=>
@@ -33,4 +32,3 @@ array(7) {
3332
[7]=>
3433
string(7) "foo"bar"
3534
}
36-
===DONE===

Zend/tests/bug77291.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ var_dump(isset($foo->a));
3535
$foo = new Foo45;
3636
var_dump($foo->a);
3737
?>
38-
===DONE===
3938
--EXPECT--
4039
bool(true)
4140
string(10) "Some value"
42-
===DONE===

Zend/tests/bug_debug_backtrace.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ eval("foo();");
1818

1919
echo "Done\n";
2020
?>
21-
===DONE===
2221
--EXPECTF--
2322
#0 boo() called at [%s:%d]
2423
#1 bar() called at [%s:%d]
2524
#2 foo() called at [%s(%d) : eval()'d code:1]
2625
#3 eval() called at [%s:%d]
2726
Done
28-
===DONE===

Zend/tests/closure_034.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ $a = function () use(&$a) {};
77
var_dump($a);
88

99
?>
10-
===DONE===
1110
--EXPECTF--
1211
object(Closure)#%d (1) {
1312
["static"]=>
@@ -16,4 +15,3 @@ object(Closure)#%d (1) {
1615
*RECURSION*
1716
}
1817
}
19-
===DONE===

Zend/tests/closures/closure_from_callable_basic.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ echo $fn(" OK".PHP_EOL);
9696

9797

9898
?>
99-
===DONE===
10099
--EXPECT--
101100
Access public static function OK
102101
Access public static function with different case OK
@@ -118,4 +117,3 @@ Access public instance method of parent object through "self::" to parent method
118117
Access proteced instance method of parent object through "self::" to parent method OK
119118
MagicCall __call instance method __call,nonExistentMethod, OK
120119
MagicCall __callStatic static method __callStatic,nonExistentMethod, OK
121-
===DONE===

0 commit comments

Comments
 (0)