Skip to content

Commit ac18dd0

Browse files
Prefer EXPECT over EXPECTF
1 parent fa71a11 commit ac18dd0

Some content is hidden

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

48 files changed

+54
-54
lines changed

Zend/tests/constant_arrays.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ try {
4040
echo $exception->getMessage() . "\n";
4141
}
4242
?>
43-
--EXPECTF--
43+
--EXPECT--
4444
array(4) {
4545
[0]=>
4646
int(7)

Zend/tests/fibers/fast-finish-fiber.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var_dump($fiber->getReturn());
1010
var_dump($fiber->isTerminated());
1111

1212
?>
13-
--EXPECTF--
13+
--EXPECT--
1414
bool(false)
1515
NULL
1616
string(4) "test"

Zend/tests/fibers/suspend-in-force-close-fiber-catching-exception.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ try {
2222
echo "done\n";
2323

2424
?>
25-
--EXPECTF--
25+
--EXPECT--
2626
Cannot suspend in a force-closed fiber
2727
done

Zend/tests/fibers/unfinished-fiber-with-suspend-in-finally.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ unset($fiber); // Destroy fiber object, executing finally block.
2929
echo "done\n";
3030

3131
?>
32-
--EXPECTF--
32+
--EXPECT--
3333
fiber
3434
inner finally
3535
outer finally

ext/bcmath/tests/str2num_formatting.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ try {
9393
}
9494

9595
?>
96-
--EXPECTF--
96+
--EXPECT--
9797
3
9898
3.10
9999
2.00
@@ -117,4 +117,4 @@ bccomp(): Argument #1 ($num1) is not well-formed
117117
bccomp(): Argument #1 ($num1) is not well-formed
118118
bccomp(): Argument #1 ($num1) is not well-formed
119119
bccomp(): Argument #1 ($num1) is not well-formed
120-
bccomp(): Argument #1 ($num1) is not well-formed
120+
bccomp(): Argument #1 ($num1) is not well-formed

ext/calendar/tests/bug80185.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ try {
1616
echo $ex->getMessage(), PHP_EOL;
1717
}
1818
?>
19-
--EXPECTF--
19+
--EXPECT--
2020
int(2170713600)
2121
int(9223372036854720000)
2222
jday must be between 2440588 and 106751993607888

ext/date/tests/timezone_identifiers_list_wrong_constructor.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ try {
1919
}
2020

2121
?>
22-
--EXPECTF--
22+
--EXPECT--
2323
timezone_identifiers_list(): Argument #2 ($countryCode) must be a two-letter ISO 3166-1 compatible country code when argument #1 ($timezoneGroup) is DateTimeZone::PER_COUNTRY
2424
timezone_identifiers_list(): Argument #2 ($countryCode) must be a two-letter ISO 3166-1 compatible country code when argument #1 ($timezoneGroup) is DateTimeZone::PER_COUNTRY

ext/dom/tests/bug66783.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ try {
1313
echo $ex->getMessage(), PHP_EOL;
1414
}
1515
?>
16-
--EXPECTF--
16+
--EXPECT--
1717
Hierarchy Request Error

ext/dom/tests/bug80600.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ $doc = new \DOMDocument();
99
$doc->loadXML('<a><!-- foo --></a>');
1010
$doc->documentElement->firstChild->remove();
1111
echo $doc->saveXML($doc->documentElement);
12-
--EXPECTF--
12+
--EXPECT--
1313
<a/>

ext/exif/tests/bug75785/bug75785.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo $tags['GPS']['GPSLatitude'][0] . PHP_EOL;
1111
echo $tags['GPS']['GPSLongitude'][0] . PHP_EOL;
1212
?>
1313
===DONE===
14-
--EXPECTF--
14+
--EXPECT--
1515
38/1
1616
122/1
1717
===DONE===

ext/intl/tests/calendar_roll_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ try {
2121
echo $e->getMessage() . \PHP_EOL;
2222
}
2323
?>
24-
--EXPECTF--
24+
--EXPECT--
2525
IntlCalendar::roll(): Argument #1 ($field) must be a valid field
2626
intlcal_roll(): Argument #1 ($calendar) must be of type IntlCalendar, int given

ext/ldap/tests/ldap_count_references_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ ldap_delete($link, "cn=userref,$base", [['oid' => LDAP_CONTROL_MANAGEDSAIT, 'isc
3333
ldap_delete($link, "cn=userref2,$base", [['oid' => LDAP_CONTROL_MANAGEDSAIT, 'iscritical' => TRUE]]);
3434
remove_dummy_data($link, $base);
3535
?>
36-
--EXPECTF--
36+
--EXPECT--
3737
int(2)

ext/libxml/tests/libxml_entity_loading_disabled_by_default.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var_dump(strpos(parseXML4($xml), 'SECRET_DATA') === false);
4444

4545
echo "Done\n";
4646
?>
47-
--EXPECTF--
47+
--EXPECT--
4848
bool(true)
4949
bool(true)
5050
bool(true)

ext/mysqli/tests/bug77956.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ if (!$link->query('DROP TABLE IF EXISTS test')) {
5555
$link->close();
5656
unlink('bug77956.data');
5757
?>
58-
--EXPECTF--
58+
--EXPECT--
5959
[006] [2000] LOAD DATA LOCAL INFILE is forbidden, check related settings like mysqli.allow_local_infile|mysqli.local_infile_directory or PDO::MYSQL_ATTR_LOCAL_INFILE|PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY
60-
done
60+
done

ext/mysqli/tests/bug80837.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ $mysqli->close();
3535
<?php
3636
require_once "clean_table.inc";
3737
?>
38-
--EXPECTF--
38+
--EXPECT--
3939
Commands out of sync; you can't run this command now

ext/mysqli/tests/mysqli_auth_pam.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@ max_execution_time=240
129129
mysqli_query($link, 'DROP USER pamtest');
130130
mysqli_query($link, 'DROP USER pamtest@localhost');
131131
?>
132-
--EXPECTF--
132+
--EXPECT--
133133
done!

ext/mysqli/tests/mysqli_fetch_all_oo.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ require_once('skipifconnectfailure.inc');
307307
<?php
308308
require_once("clean_table.inc");
309309
?>
310-
--EXPECTF--
310+
--EXPECT--
311311
[005]
312312
array(2) {
313313
[0]=>

ext/mysqli/tests/mysqli_fetch_array.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ require_once('skipifconnectfailure.inc');
287287

288288
print "done!";
289289
?>
290-
--EXPECTF--
290+
--EXPECT--
291291
[005]
292292
array(4) {
293293
[0]=>

ext/mysqli/tests/mysqli_fetch_array_oo.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ require_once('skipifconnectfailure.inc');
283283
<?php
284284
require_once("clean_table.inc");
285285
?>
286-
--EXPECTF--
286+
--EXPECT--
287287
[005]
288288
array(4) {
289289
[0]=>

ext/mysqli/tests/mysqli_stmt_data_seek.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ require_once('skipifconnectfailure.inc');
8585
<?php
8686
require_once("clean_table.inc");
8787
?>
88-
--EXPECTF--
88+
--EXPECT--
8989
mysqli_stmt object is not fully initialized
9090
int(3)
9191
int(1)

ext/oci8/tests/define1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ oci8_test_sql_execute($c, $stmtarray);
4949
echo "Done\n";
5050

5151
?>
52-
--EXPECTF--
52+
--EXPECT--
5353
bool(true)
5454
bool(false)
5555
oci_define_by_name(): Argument #2 ($column) cannot be empty

ext/oci8/tests/lob_022.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $statement = oci_parse($c, $drop);
7171
echo "Done\n";
7272

7373
?>
74-
--EXPECTF--
74+
--EXPECT--
7575

7676
OCILob::save(): Argument #2 ($offset) must be greater than or equal to 0
7777
string(4) "data"

ext/oci8/tests/null_byte_1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ try {
3737
}
3838

3939
?>
40-
--EXPECTF--
40+
--EXPECT--
4141
Test 1: Import
4242
OCILob::savefile(): Argument #1 ($filename) must not contain any null bytes
4343
Test 2: Export

ext/pcntl/tests/pcntl_rfork.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ if ($pid == 0) {
1717
exit;
1818
}
1919
?>
20-
--EXPECTF--
20+
--EXPECT--
2121
*** Test with no flags ***
2222
child

ext/pdo_mysql/tests/bug_64705.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ try {
1111
var_dump(!empty($e->errorInfo) && is_array($e->errorInfo));
1212
}
1313
?>
14-
--EXPECTF--
15-
bool(true)
14+
--EXPECT--
15+
bool(true)

ext/pdo_pgsql/tests/bug_64705.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ try {
1111
var_dump(!empty($e->errorInfo) && is_array($e->errorInfo));
1212
}
1313
?>
14-
--EXPECTF--
15-
bool(true)
14+
--EXPECT--
15+
bool(true)

ext/pdo_sqlite/tests/bug_64705.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ try {
1111
var_dump(!empty($e->errorInfo) && is_array($e->errorInfo));
1212
}
1313
?>
14-
--EXPECTF--
15-
bool(true)
14+
--EXPECT--
15+
bool(true)

ext/session/tests/sessionhandler_open_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ try {
3737
print "Done!\n";
3838

3939
?>
40-
--EXPECTF--
40+
--EXPECT--
4141
Session is not active
4242
Session is not active
4343
Session is not active

ext/soap/tests/bug80672.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ try {
1111
print $e->getMessage();
1212
}
1313
?>
14-
--EXPECTF--
15-
SOAP-ERROR: Parsing WSDL: Unexpected WSDL element <>
14+
--EXPECT--
15+
SOAP-ERROR: Parsing WSDL: Unexpected WSDL element <>

ext/sockets/tests/socket_defer_acp.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $rounded_up_val = socket_get_option( $socket, SOL_TCP, TCP_DEFER_ACCEPT);
2424
socket_close($socket);
2525
var_dump($rounded_up_val > $initial_val); // Value rounded up by the kernel, might differ from kernel version/setting
2626
?>
27-
--EXPECTF--
27+
--EXPECT--
2828
*** Test with TCP_DEFER_ACCEPT with initial SYN/ACK 'timeout' value to rounded up one ***
2929
bool(true)
3030
bool(true)

ext/sockets/tests/socket_select-wrongparams-2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try {
1515
echo $exception->getMessage() . "\n";
1616
}
1717
?>
18-
--EXPECTF--
18+
--EXPECT--
1919
socket_select(): At least one array argument must be passed
2020
--CREDITS--
2121
Till Klampaeckel, till@php.net

ext/standard/tests/array/count_recursive.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var_dump(count($arr, COUNT_RECURSIVE));
8888
fclose( $resource1 );
8989
closedir( $resource2 );
9090
?>
91-
--EXPECTF--
91+
--EXPECT--
9292
*** Testing basic functionality of count() function ***
9393
-- Testing arrays --
9494
COUNT_NORMAL: should be 2, is 2

ext/standard/tests/file/symlink_link_linkinfo_is_link_basic1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ $dirname = __DIR__."/symlink_link_linkinfo_is_link_basic1";
7979
unlink("$dirname/symlink_link_linkinfo_is_link_basic1.tmp");
8080
rmdir($dirname);
8181
?>
82-
--EXPECTF--
82+
--EXPECT--
8383
*** Testing symlink(), linkinfo(), link() and is_link() : basic functionality ***
8484

8585
-- Iteration 1 --

ext/standard/tests/file/symlink_link_linkinfo_is_link_variation1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ rmdir("$dirname/test/home");
101101
rmdir("$dirname/test");
102102
rmdir($dirname);
103103
?>
104-
--EXPECTF--
104+
--EXPECT--
105105
*** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members in an object ***
106106

107107
-- Working with soft links --

ext/standard/tests/file/symlink_link_linkinfo_is_link_variation9.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $filename = "$dirname/symlink_link_linkinfo_is_link_variation9.tmp";
8989
unlink($filename);
9090
rmdir($dirname);
9191
?>
92-
--EXPECTF--
92+
--EXPECT--
9393
*** Checking lstat() on soft link ***
9494
bool(true)
9595
linkinfo() returns integer !== -1: bool(true)

ext/standard/tests/general_functions/proc_open_sockets1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ while ($pipes) {
4848
}
4949

5050
?>
51-
--EXPECTF--
51+
--EXPECT--
5252
bool(true)
5353
bool(true)
5454
PIPE 1 << hello

ext/standard/tests/general_functions/proc_open_sockets2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fclose($pipes[0]);
5959
printf("STDOUT << %s\n", read_pipe($pipes[1]));
6060

6161
?>
62-
--EXPECTF--
62+
--EXPECT--
6363
bool(true)
6464
bool(true)
6565
STDOUT << hello

ext/standard/tests/general_functions/proc_open_sockets3.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fclose($pipes[0]);
4848
printf("STDOUT << %s\n", read_pipe($pipes[1]));
4949

5050
?>
51-
--EXPECTF--
51+
--EXPECT--
5252
bool(true)
5353
STDOUT << hello
5454
STDOUT << world

ext/standard/tests/http/bug78719.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ var_dump(stream_get_meta_data($stream)['wrapper_data'][1] === "Location: $url");
2121

2222
http_server_kill($pid);
2323
?>
24-
--EXPECTF--
24+
--EXPECT--
2525
string(4) "Body"
2626
bool(true)

ext/standard/tests/strings/pack64_32.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ try {
5151
}
5252

5353
?>
54-
--EXPECTF--
54+
--EXPECT--
5555
64-bit format codes are not available for 32-bit versions of PHP
5656
64-bit format codes are not available for 32-bit versions of PHP
5757
64-bit format codes are not available for 32-bit versions of PHP

ext/tidy/tests/007.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ try {
2727
}
2828

2929
?>
30-
--EXPECTF--
30+
--EXPECT--
3131
Current Value of 'tidy-mark': bool(false)
3232
Current Value of 'error-file': string(0) ""
3333
Current Value of 'tab-size': int(8)

ext/xmlwriter/tests/010.phpt

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

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

ext/zend_test/tests/fiber_test_01.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var_dump($value); // NULL
2020
var_dump($fiber->getReturn()); // int(1)
2121

2222
?>
23-
--EXPECTF--
23+
--EXPECT--
2424
int(123)
2525
int(246)
2626
NULL

ext/zend_test/tests/fiber_test_02.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var_dump($test->start()); // int(1)
1616
var_dump($test->resume(2)); // NULL
1717

1818
?>
19-
--EXPECTF--
19+
--EXPECT--
2020
int(1)
2121
int(2)
2222
NULL

ext/zend_test/tests/fiber_test_04.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var_dump($value); // NULL
2929
var_dump($fiber->getReturn()); // int(-1)
3030

3131
?>
32-
--EXPECTF--
32+
--EXPECT--
3333
int(1)
3434
int(2)
3535
int(3)

0 commit comments

Comments
 (0)