cakephp2-php8/lib/Cake/Test
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
..
bake_compare Remove id property from bake template 2018-10-31 09:46:01 +01:00
bootstrap build: add CakePHP2 tests bootstrap files 2023-01-11 22:45:29 +01:00
Case Fix some deprecation warnings (#64) 2024-01-29 22:49:02 +01:00
Fixture Merge branch '2.x' into 2.next 2017-06-26 21:51:41 -04:00
test_app [2.x]Fix can't load aliased component on ControllerTestCase 2017-12-31 15:44:05 +09:00
bootstrap.php build: add CakePHP2 tests bootstrap files 2023-01-11 22:45:29 +01:00