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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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
}

Zend/tests/anon/014.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ $class = new class() {
1212
};
1313
var_dump($class->run());
1414
?>
15-
--EXPECTF--
15+
--EXPECT--
1616
string(10) "Running..."

Zend/tests/arg_unpack/by_ref.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test2($a, $b, $c, $d, ...$array);
5050
var_dump($a, $b, $c, $d, $array);
5151

5252
?>
53-
--EXPECTF--
53+
--EXPECT--
5454
array(3) {
5555
[0]=>
5656
int(2)

Zend/tests/arg_unpack/string_keys.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ try {
1919
}
2020

2121
?>
22-
--EXPECTF--
22+
--EXPECT--
2323
string(36) "Cannot unpack array with string keys"
2424
string(42) "Cannot unpack Traversable with string keys"

Zend/tests/argument_restriction_004.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ class Sub extends Base {
1414
}
1515
}
1616
?>
17-
--EXPECTF--
17+
--EXPECT--

Zend/tests/assert/expect_001.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ assert.exception=1
88
assert(true);
99
var_dump(true);
1010
?>
11-
--EXPECTF--
11+
--EXPECT--
1212
bool(true)

Zend/tests/assert/expect_019.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var_dump(\assert(true));
1212
var_dump(assert(false));
1313
var_dump(assert(true));
1414
?>
15-
--EXPECTF--
15+
--EXPECT--
1616
bool(true)
1717
bool(true)
1818
bool(true)

Zend/tests/assign_to_var_001.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var_dump($var1);
1212

1313
echo "Done\n";
1414
?>
15-
--EXPECTF--
15+
--EXPECT--
1616
int(2)
1717
int(2)
1818
Done

Zend/tests/assign_to_var_002.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var_dump($var1);
1212

1313
echo "Done\n";
1414
?>
15-
--EXPECTF--
15+
--EXPECT--
1616
string(1) "g"
1717
string(1) "g"
1818
Done

Zend/tests/assign_to_var_003.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var_dump($var1);
1212

1313
echo "Done\n";
1414
?>
15-
--EXPECTF--
15+
--EXPECT--
1616
NULL
1717
NULL
1818
Done

Zend/tests/assign_to_var_004.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var_dump($var2);
1515

1616
echo "Done\n";
1717
?>
18-
--EXPECTF--
18+
--EXPECT--
1919
string(5) "space"
2020
string(5) "space"
2121
string(5) "space"

Zend/tests/bug22836.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ for ($i = 0; $i < 8; $i++) {
1313
$h =& f();
1414
}
1515
?>
16-
--EXPECTF--
16+
--EXPECT--
1717
string(3) "foo"
1818
'foo'
1919
string(3) "foo"

Zend/tests/bug26229.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ catch(Exception $e)
2424
}
2525
?>
2626
===DONE===
27-
--EXPECTF--
27+
--EXPECT--
2828
Objects returned by array_iterator::getIterator() must be traversable or implement interface Iterator
2929
===DONE===

Zend/tests/bug26697.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var_dump(class_exists('NotExistingClass'));
1313

1414
?>
1515
===DONE===
16-
--EXPECTF--
16+
--EXPECT--
1717
{closure}(NotExistingClass)
1818
bool(false)
1919
{closure}(NotExistingClass), done

Zend/tests/bug28442.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var_dump(ClassC::$prop);
4545

4646
?>
4747
===DONE===
48-
--EXPECTF--
48+
--EXPECT--
4949
===INIT===
5050
string(1) "A"
5151
string(1) "C"

Zend/tests/bug29210.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if (is_callable(array('test_class','test_func4'))) {
8989
$object = new foo();
9090
$object->test();
9191
?>
92-
--EXPECTF--
92+
--EXPECT--
9393
test_func1
9494
test_func2
9595
test_func3

Zend/tests/bug29368.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ unset($bar);
2828

2929
?>
3030
===DONE===
31-
--EXPECTF--
31+
--EXPECT--
3232
Foo::__construct
3333
Caught exception!
3434
===DONE===

Zend/tests/bug32290.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ var_dump($x->doSomethingStatic(1));
9696
?>
9797
===DONE===
9898
<?php exit(0); ?>
99-
--EXPECTF--
99+
--EXPECT--
100100
===A===
101101
TestB::doSomething(1)
102102
TestA::doSomething(2)

Zend/tests/bug33771.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var_dump(error_reporting());
3333

3434
echo "Done\n";
3535
?>
36-
--EXPECTF--
36+
--EXPECT--
3737
int(32767)
3838
int(32767)
3939
int(30719)

Zend/tests/bug40815.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ set_exception_handler("ehandle::exh");
1414
throw new Exception ("Whiii");
1515
echo "Done\n";
1616
?>
17-
--EXPECTF--
17+
--EXPECT--
1818
foo

Zend/tests/bug41026.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ try_class::main ();
2020

2121
echo "Done\n";
2222
?>
23-
--EXPECTF--
23+
--EXPECT--
2424
Done
2525

2626
Warning: (Registered shutdown functions) Unable to call self::on_shutdown() - function does not exist in Unknown on line 0

Zend/tests/bug41075.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ try {
2626

2727
echo "Done\n";
2828
?>
29-
--EXPECTF--
29+
--EXPECT--
3030
string(40) "Creating default object from empty value"
3131
Done

Zend/tests/bug43027.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ declare(ticks=1);
66
namespace test;
77
echo "ok\n";
88
?>
9-
--EXPECTF--
9+
--EXPECT--
1010
ok

Zend/tests/bug43200_2.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ $o = new C();
2121
$o->foo();
2222

2323
?>
24-
--EXPECTF--
24+
--EXPECT--
2525
works

Zend/tests/bug46196.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function myErrorHandler($errno, $errstr, $errfile, $errline)
2323

2424
?>
2525
===DONE===
26-
--EXPECTF--
26+
--EXPECT--
2727
*** Testing restore_error_handler() : error bug #46196 ***
2828
NULL
2929
bool(true)

Zend/tests/bug46811.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ arg_separator.output=&
77
var_dump(ini_set("arg_separator.output", ""));
88
var_dump(ini_get("arg_separator.output"));
99
?>
10-
--EXPECTF--
10+
--EXPECT--
1111
bool(false)
1212
string(1) "&"
1313

Zend/tests/bug47353.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ $a = new A();
2222

2323
echo "Done\n";
2424
?>
25-
--EXPECTF--
25+
--EXPECT--
2626
Done

Zend/tests/bug47981.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ interface a{}
1313
class b implements a { function f($a=1) {}}
1414
class c extends b {function f() {}}
1515
?>
16-
--EXPECTF--
16+
--EXPECT--
1717
string(60) "Declaration of c::f() should be compatible with b::f($a = 1)"

Zend/tests/bug48215.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $b = new B();
2828
$b->A();
2929
?>
3030
===DONE===
31-
--EXPECTF--
31+
--EXPECT--
3232
B::__construct
3333
A::__construct
3434
B::A

Zend/tests/bug48770.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ $c = new C;
4949
$c->func('This should work!');
5050

5151
?>
52-
--EXPECTF--
52+
--EXPECT--
5353
string(26) "A::func: This should work!"

Zend/tests/bug53632.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ $d = 2.2250738585072011e-308;
66

77
echo "Done\n";
88
?>
9-
--EXPECTF--
9+
--EXPECT--
1010
Done

Zend/tests/bug53748.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $o= myHelloWorld::getInstance(array(1=>2));
3030
$o= myHelloWorld::getInstance(array(1=>2));
3131

3232
?>
33-
--EXPECTF--
33+
--EXPECT--
3434
int(1)
3535
int(2)
3636
array(1) {

Zend/tests/bug54624.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ eval('
2222

2323
echo "DONE\n";
2424
?>
25-
--EXPECTF--
25+
--EXPECT--
2626
DONE

Zend/tests/bug55156.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace foo {
2626
}
2727

2828
?>
29-
--EXPECTF--
29+
--EXPECT--
3030
bool(false)
3131
string(12) "/** test1 */"
3232
string(12) "/** test2 */"

Zend/tests/bug55445.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Bug #55445 (Lexer error with short open tags)
44
short_open_tag=0
55
--FILE--
66
<?php $u = "chris"; ?><p>Welcome <?= $u ?></p>
7-
--EXPECTF--
7+
--EXPECT--
88
<p>Welcome chris</p>

Zend/tests/bug60536_004.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Notice extends Base {
2828
}
2929
echo "POST-CLASS-GUARD2\n";
3030
?>
31-
--EXPECTF--
31+
--EXPECT--
3232
PRE-CLASS-GUARD
3333
POST-CLASS-GUARD
3434
POST-CLASS-GUARD2

Zend/tests/bug60536_005.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Notice extends Base {
2727
}
2828
echo "POST-CLASS-GUARD2\n";
2929
?>
30-
--EXPECTF--
30+
--EXPECT--
3131
PRE-CLASS-GUARD
3232
POST-CLASS-GUARD
3333
POST-CLASS-GUARD2

Zend/tests/bug61761.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class B extends A
1515

1616
?>
1717
==DONE==
18-
--EXPECTF--
18+
--EXPECT--
1919
==DONE==

Zend/tests/bug62892.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ $class = new \ReflectionClass('myClass');
1616
var_dump($class->getTraitAliases());
1717

1818
?>
19-
--EXPECTF--
19+
--EXPECT--
2020
array(0) {
2121
}

0 commit comments

Comments
 (0)