Skip to content

Commit b80de1c

Browse files
committed
Fix tests
1 parent cbea8f9 commit b80de1c

8 files changed

+15
-15
lines changed

ext/intl/tests/calendar_set_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
2020
bool(true)
2121
int(2)
2222

23-
Deprecated: Function intlcal_set() is deprecated since 8.4 in %s on line %d
23+
Deprecated: Function intlcal_set() is deprecated since 8.4, use IntlCalendar::set(), IntlCalendar::setDate(), or IntlCalendar::setDateTime() instead in %s on line %d
2424
bool(true)
2525
int(3)

ext/intl/tests/calendar_set_error.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Deprecated: Calling IntlCalendar::set() with more than 2 arguments is deprecated
4848
IntlCalendar::set() has no variant with exactly 4 parameters
4949
IntlCalendar::set(): Argument #1 ($year) must be a valid field
5050

51-
Deprecated: Function intlcal_set() is deprecated since 8.4 in %s on line %d
51+
Deprecated: Function intlcal_set() is deprecated since 8.4, use IntlCalendar::set(), IntlCalendar::setDate(), or IntlCalendar::setDateTime() instead in %s on line %d
5252
intlcal_set(): Argument #2 ($year) must be a valid field
5353

54-
Deprecated: Function intlcal_set() is deprecated since 8.4 in %s on line %d
54+
Deprecated: Function intlcal_set() is deprecated since 8.4, use IntlCalendar::set(), IntlCalendar::setDate(), or IntlCalendar::setDateTime() instead in %s on line %d
5555
intlcal_set(): Argument #1 ($calendar) must be of type IntlCalendar, int given

ext/intl/tests/gregoriancalendar___construct_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var_dump($intlcal->getLocale(1));
3232
var_dump($intlcal->getType());
3333
?>
3434
--EXPECTF--
35-
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4 in %s on line %d
35+
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4, use IntlGregorianCalendar::__construct(), IntlGregorianCalendar::createFromDate(), or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d
3636
string(16) "Europe/Amsterdam"
3737
string(5) "nl_NL"
3838
string(13) "Europe/Lisbon"

ext/intl/tests/gregoriancalendar___construct_error.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ try {
4040
}
4141
?>
4242
--EXPECTF--
43-
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4 in %s on line %d
43+
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4, use IntlGregorianCalendar::__construct(), IntlGregorianCalendar::createFromDate(), or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d
4444
Too many arguments
4545

46-
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4 in %s on line %d
46+
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4, use IntlGregorianCalendar::__construct(), IntlGregorianCalendar::createFromDate(), or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d
4747
Too many arguments
4848

49-
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4 in %s on line %d
49+
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4, use IntlGregorianCalendar::__construct(), IntlGregorianCalendar::createFromDate(), or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d
5050
No variant with 4 arguments (excluding trailing NULLs)
5151

5252
Deprecated: Calling IntlGregorianCalendar::__construct() with more than 2 arguments is deprecated, use either IntlGregorianCalendar::createFromDate() or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d

ext/intl/tests/gregoriancalendar___construct_variant1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var_dump($intlcal->getTime(), (float)strtotime('2012-02-29 16:07:08') * 1000);
1818
var_dump($intlcal->getType());
1919
?>
2020
--EXPECTF--
21-
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4 in %s on line %d
21+
Deprecated: Function intlgregcal_create_instance() is deprecated since 8.4, use IntlGregorianCalendar::__construct(), IntlGregorianCalendar::createFromDate(), or IntlGregorianCalendar::createFromDateTime() instead in %s on line %d
2222
string(16) "Europe/Amsterdam"
2323
float(1330527600000)
2424
float(1330527600000)

ext/openssl/tests/001.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ Export key to file
7474
bool(true)
7575
Load key from file - array syntax
7676

77-
Deprecated: Function openssl_pkey_free() is deprecated in %s on line %d
77+
Deprecated: Function openssl_pkey_free() is deprecated since 8.0, as OpenSSLAsymmetricKey objects are freed automatically in %s on line %d
7878
Load key using direct syntax
7979

80-
Deprecated: Function openssl_pkey_free() is deprecated in %s on line %d
80+
Deprecated: Function openssl_pkey_free() is deprecated since 8.0, as OpenSSLAsymmetricKey objects are freed automatically in %s on line %d
8181
Load key manually and use string syntax
8282

83-
Deprecated: Function openssl_pkey_free() is deprecated in %s on line %d
83+
Deprecated: Function openssl_pkey_free() is deprecated since 8.0, as OpenSSLAsymmetricKey objects are freed automatically in %s on line %d
8484
OK!

ext/openssl/tests/openssl_free_key.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ Creating private key
6565
Export key to file
6666
Load key from file - array syntax
6767

68-
Deprecated: Function openssl_free_key() is deprecated in %s on line %d
68+
Deprecated: Function openssl_free_key() is deprecated since 8.0, as OpenSSLAsymmetricKey objects are freed automatically in %s on line %d
6969
Load key using direct syntax
7070

71-
Deprecated: Function openssl_free_key() is deprecated in %s on line %d
71+
Deprecated: Function openssl_free_key() is deprecated since 8.0, as OpenSSLAsymmetricKey objects are freed automatically in %s on line %d
7272
Load key manually and use string syntax
7373

74-
Deprecated: Function openssl_free_key() is deprecated in %s on line %d
74+
Deprecated: Function openssl_free_key() is deprecated since 8.0, as OpenSSLAsymmetricKey objects are freed automatically in %s on line %d
7575
OK!

ext/openssl/tests/openssl_x509_free_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ var_dump($res);
1212
object(OpenSSLCertificate)#1 (0) {
1313
}
1414

15-
Deprecated: Function openssl_x509_free() is deprecated in %s on line %d
15+
Deprecated: Function openssl_x509_free() is deprecated since 8.0, as OpenSSLCertificate objects are freed automatically in %s on line %d
1616
object(OpenSSLCertificate)#1 (0) {
1717
}

0 commit comments

Comments
 (0)