Skip to content

Commit ded3d98

Browse files
carusogabrielnikic
authored andcommitted
Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
1 parent a002869 commit ded3d98

File tree

2,790 files changed

+2744
-2744
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,790 files changed

+2744
-2744
lines changed

Zend/tests/010.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var_dump(get_parent_class(1));
4141

4242
echo "Done\n";
4343
?>
44-
--EXPECTF--
44+
--EXPECT--
4545
bool(false)
4646
bool(false)
4747
string(3) "foo"

Zend/tests/ErrorException_getSeverity.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ try {
862862
}
863863

864864
?>
865-
--EXPECTF--
865+
--EXPECT--
866866
This exception severity is: 1bool(true)
867867
bool(true)
868868
bool(true)

Zend/tests/abstract-static.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ abstract class TestClass
88
}
99
?>
1010
===DONE===
11-
--EXPECTF--
11+
--EXPECT--
1212

1313
===DONE===

Zend/tests/access_modifiers_011.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ echo $a->func1(),"\n";
3232
echo $a->func2(),"\n";
3333

3434
?>
35-
--EXPECTF--
35+
--EXPECT--
3636
var1 value
3737
var2 value
3838
in func1

Zend/tests/access_modifiers_012.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ call_user_func(array($c, 'none'));
1515
call_user_func(array($c, 'prot'));
1616
call_user_func(array($c, 'priv'));
1717
?>
18-
--EXPECTF--
18+
--EXPECT--
1919
In __call() for method none()
2020
In __call() for method prot()
2121
In __call() for method priv()

Zend/tests/add_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var_dump($c);
2929

3030
echo "Done\n";
3131
?>
32-
--EXPECTF--
32+
--EXPECT--
3333
array(3) {
3434
[0]=>
3535
int(1)

Zend/tests/add_005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var_dump($c);
1616

1717
echo "Done\n";
1818
?>
19-
--EXPECTF--
19+
--EXPECT--
2020
float(2834756759.1231)
2121
float(2834756759.1231)
2222
Done

Zend/tests/and_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var_dump($s);
3030

3131
echo "Done\n";
3232
?>
33-
--EXPECTF--
33+
--EXPECT--
3434
string(3) "020"
3535
string(4) "pead"
3636
string(4) "pead"

Zend/tests/anon/002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $a = new class extends A implements B {
1515
};
1616

1717
var_dump($a instanceof A, $a instanceof B);
18-
--EXPECTF--
18+
--EXPECT--
1919
bool(true)
2020
bool(true)
2121

Zend/tests/anon/013.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ $foo = function() {
1010
$closure = Closure::bind($foo, $class, $class);
1111
var_dump($closure());
1212
?>
13-
--EXPECTF--
13+
--EXPECT--
1414
object(class@anonymous)#1 (0) {
1515
}

0 commit comments

Comments
 (0)