cakephp2-php8/lib/Cake/Test/Case/Utility
Diego Surita 32459b11b6
Fix some deprecation warnings (#64)
* Fix PHP 8.1 deprecation warnings on Helper and FormHelper

- fix deprecation warning when Helper::_entityPath is null
- fix `strftime` function deprecation warning on FormHelper::_getDateTimeValue method

ref: ARCH-11

* Switch deprecated utf8_encode function to mb_convert_encoding function

ref: ARCH-13

* Hide strftime deprecation warning

Since CakePHP 2 doesn't require the installation of `intl` PHP extension in it's documentation, I can't use the alternative `IntlDateFormatter::format` because it relies such extension.

ref: ARCH-13

* Roll back the use of strftime

ref: ARCH-11

* Fix preg_split subject param null deprecated on FormHelper::dateTime

* Fix preg_split deprecated null param limit on CakeResponse::checkNotModified

* fix: get rid of (some) PHP deprecation warnings

- CakeResponse.php strotime() and preg_split() warnings

* Ignore hide srtftime function deprecation warning from PHPCS

* Fix typo on phpcs ignore comments

---------

Co-authored-by: Jan Pešek <jan@sinch.cz>
2024-01-29 22:49:02 +01:00
..
CakeNumberTest.php test: Fixed CakeNumberTest::testCurrencyFractionSymbol() 2023-01-11 22:45:29 +01:00
CakeTextTest.php test: Add return type declarations to overridden methods of TestCase classes. 2023-01-11 22:45:29 +01:00
CakeTimeTest.php Fix some deprecation warnings (#64) 2024-01-29 22:49:02 +01:00
ClassRegistryTest.php test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00
DebuggerTest.php test: Skip DebuggerTest::testExportVarRecursion() in PHP 8.1+. 2023-02-19 13:58:40 +01:00
FileTest.php test: Fixed FileTest::testPermission() 2023-01-11 22:45:29 +01:00
FolderTest.php test: Replace PHPUnit's class name in tests 2023-01-11 22:45:29 +01:00
HashTest.php test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00
InflectorTest.php test: Add return type declarations to overridden methods of TestCase classes. 2023-01-11 22:45:29 +01:00
ObjectCollectionTest.php test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00
SanitizeTest.php Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
SecurityTest.php test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00
SetTest.php Use HTTPS for the opensource.org MIT license URL 2017-06-11 00:23:22 +02:00
ValidationTest.php test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00
XmlTest.php test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00