Skip to content

Commit 82b85b4

Browse files
committed
Adapt tests
1 parent 224e75b commit 82b85b4

File tree

341 files changed

+1143
-1145
lines changed

Some content is hidden

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

341 files changed

+1143
-1145
lines changed

Zend/tests/bug30998.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ set_error_handler('my_error');
1414
$f = fopen("/tmp/blah", "r");
1515
?>
1616
--EXPECTF--
17-
fopen(/tmp/blah): failed to open stream: %s (2) in %s:%d
17+
fopen(/tmp/blah): Failed to open stream: %s (2) in %s:%d
1818

19-
Warning: fopen(/tmp/blah): failed to open stream: %s in %s on line %d
19+
Warning: fopen(/tmp/blah): Failed to open stream: %s in %s on line %d

Zend/tests/bug60909_1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set_error_handler(function($errno, $errstr, $errfile, $errline){
1010

1111
require 'notfound.php';
1212
--EXPECTF--
13-
error(require(notfound.php): failed to open stream: %s)
13+
error(require(notfound.php): Failed to open stream: %s)
1414
Fatal error: Uncaught Exception: Foo in %sbug60909_1.php:5
1515
Stack trace:
1616
#0 %sbug60909_1.php(8): {closure}(2, 'require(notfoun...', '%s', 8)

Zend/tests/bug64960.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set_error_handler(function()
2929
$a['waa'];
3030
?>
3131
--EXPECTF--
32-
Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in %sbug64960.php on line 3
32+
Notice: ob_end_flush(): Failed to delete and flush buffer. No buffer to delete or flush in %sbug64960.php on line 3
3333

3434
Fatal error: Uncaught Exception in %sbug64960.php:19
3535
Stack trace:

Zend/tests/debug_backtrace_with_include_and_this.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ try {
2828
echo $e."\n";
2929
}
3030
--EXPECTF--
31-
ERR#2: include(class://non.existent.Class): failed to open stream: "CLWrapper::stream_open" call failed @ include
31+
ERR#2: include(class://non.existent.Class): Failed to open stream: "CLWrapper::stream_open" call failed @ include
3232
ERR#2: include(): Failed opening 'class://non.existent.Class' for inclusion (include_path='%s') @ include
3333

3434
Fatal error: Uncaught Exception: Failed loading class://non.existent.Class in %s

Zend/tests/dynamic_call_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Testing dynamic call with invalid value for method name
2+
Testing dynamic call with Invalid value for method name
33
--FILE--
44
<?php
55

Zend/tests/include_stat_is_quiet.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ try {
2525

2626
?>
2727
--EXPECTF--
28-
Warning: require_once(doesnt_exist.php): failed to open stream: No such file or directory in %s on line %d
28+
Warning: require_once(doesnt_exist.php): Failed to open stream: No such file or directory in %s on line %d
2929

3030
Fatal error: require_once(): Failed opening required 'doesnt_exist.php' (include_path='test://foo:test://bar') in %s on line %d

ext/bcmath/tests/bcpow_error1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
99
var_dump(bcpow('1', '1.1', 2));
1010
?>
1111
--EXPECTF--
12-
Warning: bcpow(): non-zero scale in exponent in %s on line %d
12+
Warning: bcpow(): Non-zero scale in exponent in %s on line %d
1313
string(4) "1.00"

ext/bcmath/tests/bcpow_error2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
99
var_dump(bcpow('0', '9223372036854775808', 2));
1010
?>
1111
--EXPECTF--
12-
Warning: bcpow(): exponent too large in %s on line %d
12+
Warning: bcpow(): Exponent too large in %s on line %d
1313
string(4) "1.00"

ext/bcmath/tests/bug72093.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ var_dump(bcpowmod(1, 1.2, 1, 1));
1212
--EXPECTF--
1313
string(1) "1"
1414

15-
Warning: bcpowmod(): non-zero scale in exponent in %s on line %d
15+
Warning: bcpowmod(): Non-zero scale in exponent in %s on line %d
1616
string(3) "0.0"

ext/bcmath/tests/bug75178.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ var_dump(bcpowmod('4.1', '4', '3', 3));
1010
var_dump(bcpowmod('4', '4', '3.1', 3));
1111
?>
1212
--EXPECTF--
13-
Warning: bcpowmod(): non-zero scale in base in %s on line %d
13+
Warning: bcpowmod(): Non-zero scale in base in %s on line %d
1414
string(5) "1.000"
1515

16-
Warning: bcpowmod(): non-zero scale in modulus in %s on line %d
16+
Warning: bcpowmod(): Non-zero scale in modulus in %s on line %d
1717
string(5) "1.000"

ext/bz2/tests/001.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ var_dump(bzopen($fp, "r"));
3939
--EXPECTF--
4040
'' is not a valid mode for bzopen(). Only 'w' and 'r' are supported.
4141

42-
Warning: bzopen(): filename cannot be empty in %s on line %d
42+
Warning: bzopen(): Filename cannot be empty in %s on line %d
4343
bool(false)
4444

45-
Warning: bzopen(): filename cannot be empty in %s on line %d
45+
Warning: bzopen(): Filename cannot be empty in %s on line %d
4646
bool(false)
4747
'x' is not a valid mode for bzopen(). Only 'w' and 'r' are supported.
4848
'rw' is not a valid mode for bzopen(). Only 'w' and 'r' are supported.
4949

50-
Warning: bzopen(no_such_file): failed to open stream: No such file or directory in %s on line %d
50+
Warning: bzopen(no_such_file): Failed to open stream: No such file or directory in %s on line %d
5151
bool(false)
5252
resource(%d) of type (stream)

ext/bz2/tests/002.phpt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,47 +85,47 @@ resource(%d) of type (stream)
8585
resource(%d) of type (stream)
8686
resource(%d) of type (stream)
8787

88-
Warning: bzopen(): cannot read from a stream opened in write only mode in %s on line %d
88+
Warning: bzopen(): Cannot read from a stream opened in write only mode in %s on line %d
8989
bool(false)
9090
resource(%d) of type (stream)
9191
resource(%d) of type (stream)
9292

93-
Warning: fopen(bz_open_002.txt): failed to open stream: Bad file %s in %s on line %d
93+
Warning: fopen(bz_open_002.txt): Failed to open stream: Bad file %s in %s on line %d
9494
First parameter has to be string or file-resource
9595

96-
Warning: fopen(bz_open_002.txt): failed to open stream: Bad file %s in %s on line %d
96+
Warning: fopen(bz_open_002.txt): Failed to open stream: Bad file %s in %s on line %d
9797
First parameter has to be string or file-resource
9898

9999
Warning: bzopen(): cannot write to a stream opened in read only mode in %s on line %d
100100
bool(false)
101101

102-
Warning: bzopen(): cannot read from a stream opened in write only mode in %s on line %d
102+
Warning: bzopen(): Cannot read from a stream opened in write only mode in %s on line %d
103103
bool(false)
104104

105-
Warning: bzopen(): cannot use stream opened in mode 'rw' in %s on line %d
105+
Warning: bzopen(): Cannot use stream opened in mode 'rw' in %s on line %d
106106
bool(false)
107107

108-
Warning: bzopen(): cannot use stream opened in mode 'rw' in %s on line %d
108+
Warning: bzopen(): Cannot use stream opened in mode 'rw' in %s on line %d
109109
bool(false)
110110

111-
Warning: bzopen(): cannot use stream opened in mode 'wr' in %s on line %d
111+
Warning: bzopen(): Cannot use stream opened in mode 'wr' in %s on line %d
112112
bool(false)
113113

114-
Warning: bzopen(): cannot use stream opened in mode 'wr' in %s on line %d
114+
Warning: bzopen(): Cannot use stream opened in mode 'wr' in %s on line %d
115115
bool(false)
116116

117-
Warning: bzopen(): cannot use stream opened in mode 'r+' in %s on line %d
117+
Warning: bzopen(): Cannot use stream opened in mode 'r+' in %s on line %d
118118
bool(false)
119119

120-
Warning: bzopen(): cannot use stream opened in mode 'r+' in %s on line %d
120+
Warning: bzopen(): Cannot use stream opened in mode 'r+' in %s on line %d
121121
bool(false)
122122

123-
Warning: bzopen(): cannot use stream opened in mode 'w+' in %s on line %d
123+
Warning: bzopen(): Cannot use stream opened in mode 'w+' in %s on line %d
124124
bool(false)
125125

126-
Warning: bzopen(): cannot use stream opened in mode 'w+' in %s on line %d
126+
Warning: bzopen(): Cannot use stream opened in mode 'w+' in %s on line %d
127127
bool(false)
128128

129-
Warning: bzopen(): cannot read from a stream opened in write only mode in %s on line %d
129+
Warning: bzopen(): Cannot read from a stream opened in write only mode in %s on line %d
130130
bool(false)
131131
resource(%d) of type (stream)

ext/bz2/tests/bzopen_string_filename_with_null_bytes.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ try {
1919

2020
?>
2121
--EXPECT--
22-
filename must not contain null bytes
23-
filename must not contain null bytes
22+
Filename must not contain null bytes
23+
Filename must not contain null bytes

ext/calendar/calendar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ PHP_FUNCTION(cal_info)
217217

218218

219219
if (cal != -1 && (cal < 0 || cal >= CAL_NUM_CALS)) {
220-
zend_value_error("Invalid calendar ID " ZEND_LONG_FMT, cal);
220+
zend_value_error("Invalid calendar ID: " ZEND_LONG_FMT, cal);
221221
RETURN_THROWS();
222222
}
223223

@@ -239,7 +239,7 @@ PHP_FUNCTION(cal_days_in_month)
239239
}
240240

241241
if (cal < 0 || cal >= CAL_NUM_CALS) {
242-
zend_value_error("Invalid calendar ID " ZEND_LONG_FMT, cal);
242+
zend_value_error("Invalid calendar ID: " ZEND_LONG_FMT, cal);
243243
RETURN_THROWS();
244244
}
245245

ext/calendar/tests/cal_days_in_month_error1.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ try{
1818
}
1919
?>
2020
--EXPECT--
21-
invalid calendar ID -1
22-
invalid date
21+
Invalid calendar ID: -1
22+
Invalid date

ext/calendar/tests/cal_from_jd_error1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ try {
1313
}
1414
?>
1515
--EXPECT--
16-
invalid calendar ID -1
16+
Invalid calendar ID: -1

ext/calendar/tests/cal_info.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,4 @@ Array
216216
[calname] => Julian
217217
[calsymbol] => CAL_JULIAN
218218
)
219-
invalid calendar ID 99999
219+
Invalid calendar ID: 99999

ext/calendar/tests/cal_to_jd_error1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ try {
1313
}
1414
?>
1515
--EXPECT--
16-
invalid calendar ID -1
16+
Invalid calendar ID: -1

ext/calendar/tests/unixtojd_error1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var_dump(unixtojd(null)) . PHP_EOL;
2020
var_dump(unixtojd(time())) . PHP_EOL;
2121
?>
2222
--EXPECTF--
23-
timestamp must not be negative
23+
Timestamp must not be negative
2424
int(%d)
2525
int(%d)
2626
int(%d)

ext/curl/tests/bug48207.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ is_file($tempfile) and @unlink($tempfile);
4343
isset($tempname) and is_file($tempname) and @unlink($tempname);
4444
?>
4545
--EXPECTF--
46-
Warning: curl_setopt(): the provided file handle is not writable in %s on line %d
46+
Warning: curl_setopt(): The provided file handle is not writable in %s on line %d
4747
Hello World!
4848
Hello World!

ext/curl/tests/curl_version_error_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ curl_version(CURLVERSION_NOW);
1010
curl_version(0);
1111
?>
1212
--EXPECTF--
13-
Deprecated: curl_version(): the $version parameter is deprecated in %s on line %d
13+
Deprecated: curl_version(): The $version parameter is deprecated in %s on line %d
1414

1515
Warning: curl_version(): $version argument ignored in %s on line %d

ext/exif/tests/exif_imagetype_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ var_dump( exif_imagetype(__DIR__.'/foo.jpg') );
2222

2323
-- Testing exif_imagetype() function with an unknown file --
2424

25-
Warning: exif_imagetype(%s/foo.jpg): failed to open stream: No such file or directory in %s on line %d
25+
Warning: exif_imagetype(%s/foo.jpg): Failed to open stream: No such file or directory in %s on line %d
2626
bool(false)

ext/ffi/ffi.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3437,11 +3437,11 @@ static int zend_ffi_validate_incomplete_type(zend_ffi_type *type, zend_bool allo
34373437
ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(tags), key, tag) {
34383438
if (ZEND_FFI_TYPE(tag->type) == type) {
34393439
if (type->kind == ZEND_FFI_TYPE_ENUM) {
3440-
zend_ffi_throw_parser_error("incomplete 'enum %s' at line %d", ZSTR_VAL(key), FFI_G(line));
3440+
zend_ffi_throw_parser_error("Incomplete 'enum %s' at line %d", ZSTR_VAL(key), FFI_G(line));
34413441
} else if (type->attr & ZEND_FFI_ATTR_UNION) {
3442-
zend_ffi_throw_parser_error("incomplete 'union %s' at line %d", ZSTR_VAL(key), FFI_G(line));
3442+
zend_ffi_throw_parser_error("Incomplete 'union %s' at line %d", ZSTR_VAL(key), FFI_G(line));
34433443
} else {
3444-
zend_ffi_throw_parser_error("incomplete 'struct %s' at line %d", ZSTR_VAL(key), FFI_G(line));
3444+
zend_ffi_throw_parser_error("Incomplete 'struct %s' at line %d", ZSTR_VAL(key), FFI_G(line));
34453445
}
34463446
return FAILURE;
34473447
}
@@ -3453,12 +3453,12 @@ static int zend_ffi_validate_incomplete_type(zend_ffi_type *type, zend_bool allo
34533453

34543454
ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(symbols), key, sym) {
34553455
if (type == ZEND_FFI_TYPE(sym->type)) {
3456-
zend_ffi_throw_parser_error("incomplete C type '%s' at line %d", ZSTR_VAL(key), FFI_G(line));
3456+
zend_ffi_throw_parser_error("Incomplete C type '%s' at line %d", ZSTR_VAL(key), FFI_G(line));
34573457
return FAILURE;
34583458
}
34593459
} ZEND_HASH_FOREACH_END();
34603460
}
3461-
zend_ffi_throw_parser_error("incomplete type at line %d", FFI_G(line));
3461+
zend_ffi_throw_parser_error("Incomplete type at line %d", FFI_G(line));
34623462
return FAILURE;
34633463
} else if (!allow_incomplete_array && type->attr & ZEND_FFI_ATTR_INCOMPLETE_ARRAY) {
34643464
zend_ffi_throw_parser_error("'[]' not allowed at line %d", FFI_G(line));
@@ -5512,7 +5512,7 @@ static int zend_ffi_validate_prev_field_type(zend_ffi_type *struct_type) /* {{{
55125512
break;
55135513
} ZEND_HASH_FOREACH_END();
55145514
if (ZEND_FFI_TYPE(field->type)->attr & ZEND_FFI_ATTR_INCOMPLETE_ARRAY) {
5515-
zend_ffi_throw_parser_error("flexible array member not at end of struct at line %d", FFI_G(line));
5515+
zend_ffi_throw_parser_error("Flexible array member not at end of struct at line %d", FFI_G(line));
55165516
return FAILURE;
55175517
}
55185518
}
@@ -5523,13 +5523,13 @@ static int zend_ffi_validate_prev_field_type(zend_ffi_type *struct_type) /* {{{
55235523
static int zend_ffi_validate_field_type(zend_ffi_type *type, zend_ffi_type *struct_type) /* {{{ */
55245524
{
55255525
if (type == struct_type) {
5526-
zend_ffi_throw_parser_error("struct/union can't contain an instance of itself at line %d", FFI_G(line));
5526+
zend_ffi_throw_parser_error("Struct/union can't contain an instance of itself at line %d", FFI_G(line));
55275527
return FAILURE;
55285528
} else if (zend_ffi_validate_var_type(type, 1) != SUCCESS) {
55295529
return FAILURE;
55305530
} else if (struct_type->attr & ZEND_FFI_ATTR_UNION) {
55315531
if (type->attr & ZEND_FFI_ATTR_INCOMPLETE_ARRAY) {
5532-
zend_ffi_throw_parser_error("flexible array member in union at line %d", FFI_G(line));
5532+
zend_ffi_throw_parser_error("Flexible array member in union at line %d", FFI_G(line));
55335533
return FAILURE;
55345534
}
55355535
}
@@ -5789,10 +5789,10 @@ void zend_ffi_make_pointer_type(zend_ffi_dcl *dcl) /* {{{ */
57895789
static int zend_ffi_validate_array_element_type(zend_ffi_type *type) /* {{{ */
57905790
{
57915791
if (type->kind == ZEND_FFI_TYPE_FUNC) {
5792-
zend_ffi_throw_parser_error("array of functions is not allowed at line %d", FFI_G(line));
5792+
zend_ffi_throw_parser_error("Array of functions is not allowed at line %d", FFI_G(line));
57935793
return FAILURE;
57945794
} else if (type->kind == ZEND_FFI_TYPE_ARRAY && (type->attr & ZEND_FFI_ATTR_INCOMPLETE_ARRAY)) {
5795-
zend_ffi_throw_parser_error("only the leftmost array can be undimensioned at line %d", FFI_G(line));
5795+
zend_ffi_throw_parser_error("Only the leftmost array can be undimensioned at line %d", FFI_G(line));
57965796
return FAILURE;
57975797
}
57985798
return zend_ffi_validate_type(type, 0, 1);
@@ -5849,10 +5849,10 @@ void zend_ffi_make_array_type(zend_ffi_dcl *dcl, zend_ffi_val *len) /* {{{ */
58495849
static int zend_ffi_validate_func_ret_type(zend_ffi_type *type) /* {{{ */
58505850
{
58515851
if (type->kind == ZEND_FFI_TYPE_FUNC) {
5852-
zend_ffi_throw_parser_error("function returning function is not allowed at line %d", FFI_G(line));
5852+
zend_ffi_throw_parser_error("Function returning function is not allowed at line %d", FFI_G(line));
58535853
return FAILURE;
58545854
} else if (type->kind == ZEND_FFI_TYPE_ARRAY) {
5855-
zend_ffi_throw_parser_error("function returning array is not allowed at line %d", FFI_G(line));
5855+
zend_ffi_throw_parser_error("Function returning array is not allowed at line %d", FFI_G(line));
58565856
return FAILURE;
58575857
}
58585858
return zend_ffi_validate_incomplete_type(type, 1, 0);
@@ -5986,7 +5986,7 @@ void zend_ffi_make_func_type(zend_ffi_dcl *dcl, HashTable *args, zend_ffi_dcl *n
59865986
}
59875987
type->func.args = NULL;
59885988
_zend_ffi_type_dtor(type);
5989-
zend_ffi_parser_error("unsupported calling convention line %d", FFI_G(line));
5989+
zend_ffi_parser_error("Unsupported calling convention line %d", FFI_G(line));
59905990
break;
59915991
}
59925992
type->func.args = args;

ext/ffi/tests/003.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ object(FFI\CData:struct _d)#%d (1) {
5858
["x"]=>
5959
int(0)
6060
}
61-
FFI\ParserException: incomplete 'struct _e' at line 1
62-
FFI\ParserException: incomplete 'struct _f' at line 1
61+
FFI\ParserException: Incomplete 'struct _e' at line 1
62+
FFI\ParserException: Incomplete 'struct _f' at line 1
6363
ok

ext/ffi/tests/004.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ object(FFI\CData:int32_t[2])#%d (2) {
8282
[1]=>
8383
int(0)
8484
}
85-
FFI\ParserException: incomplete 'enum _e' at line 1
86-
FFI\ParserException: incomplete 'enum _f' at line 1
85+
FFI\ParserException: Incomplete 'enum _e' at line 1
86+
FFI\ParserException: Incomplete 'enum _f' at line 1
8787
ok

ext/ffi/tests/013.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ int(2)
5959
int(3)
6060
FFI\ParserException: 'void' type is not allowed at line 1
6161
FFI\ParserException: 'void' type is not allowed at line 1
62-
FFI\ParserException: function returning array is not allowed at line 1
63-
FFI\ParserException: array of functions is not allowed at line 1
64-
FFI\ParserException: function returning function is not allowed at line 1
65-
FFI\ParserException: only the leftmost array can be undimensioned at line 1
62+
FFI\ParserException: Function returning array is not allowed at line 1
63+
FFI\ParserException: Array of functions is not allowed at line 1
64+
FFI\ParserException: Function returning function is not allowed at line 1
65+
FFI\ParserException: Only the leftmost array can be undimensioned at line 1
6666
ok

ext/ffi/tests/015.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ try {
5757
?>
5858
ok
5959
--EXPECT--
60-
FFI\ParserException: incomplete 'struct DIR' at line 1
60+
FFI\ParserException: Incomplete 'struct DIR' at line 1
6161
ok
62-
FFI\ParserException: incomplete 'struct DIR' at line 1
62+
FFI\ParserException: Incomplete 'struct DIR' at line 1
6363
ok
6464
ok
6565
ok

ext/ffi/tests/016.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ try {
2828
ok
2929
--EXPECT--
3030
FFI\ParserException: 'function' type is not allowed at line 1
31-
FFI\ParserException: struct/union can't contain an instance of itself at line 1
31+
FFI\ParserException: Struct/union can't contain an instance of itself at line 1
3232
ok
3333
ok

ext/ffi/tests/017.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ try {
2525
ok
2626
--EXPECTF--
2727
FFI\ParserException: 'function' type is not allowed at line 1
28-
FFI\ParserException: struct/union can't contain an instance of itself at line 1
28+
FFI\ParserException: Struct/union can't contain an instance of itself at line 1
2929
object(FFI\CData:struct X)#%d (1) {
3030
["ptr"]=>
3131
NULL

0 commit comments

Comments
 (0)