cakephp2-php8/lib/Cake/Test/Case
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
..
Cache test: Improved MemcachedEngineTest/MemcacheEngineTest. 2023-01-11 22:45:29 +01:00
Configure test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00
Console test: phpunit command does not use TestShell, HtmlCoverageReport. So skip test. 2023-01-11 22:45:29 +01:00
Controller test: Fix assertion of SecurityComponentTest::testCsrfNonceVacuum() 2023-01-11 22:45:29 +01:00
Core test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00
Error test: Attempting to read an undefined variable causes a Warning error (PHP 8.0+) 2023-01-11 22:45:29 +01:00
Event test: Fix error "Error : Unknown named parameter $some" in CakeEventManagerTest 2023-01-11 22:45:29 +01:00
I18n test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00
Log test: Replace deprecated @expectedException* to $this->expectException*() 2023-01-11 22:45:29 +01:00
Model test: MysqlTest::testTinyintCasting() Use assertEquals for assertions as in other record-retrieval tests. 2023-02-19 13:58:40 +01:00
Network test: Change the test to match the behavior of the MailTransport class. 2023-01-11 22:45:29 +01:00
Routing fix: Relative time may not be cached if specified in CacheHelper duration 2023-01-22 14:24:47 +01:00
TestSuite test: Replace deprecated assertInternalType() 2023-01-11 22:45:29 +01:00
Utility Fix some deprecation warnings (#64) 2024-01-29 22:49:02 +01:00
View test: Separate FormHelperTest::testSecuredFileInput() by PHP Version. 2023-02-19 13:58:40 +01:00
AllBehaviorsTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllCacheTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllComponentsTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllConfigureTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllConsoleTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllControllerTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllCoreTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllDatabaseTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllDbRelatedTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllErrorTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllEventTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllHelpersTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllI18nTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllLogTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllNetworkTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllRoutingTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllTestsTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllTestSuiteTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllUtilityTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
AllViewTest.php test: Updated TestSuite class for PHPUnit 9.5 2023-01-11 22:45:29 +01:00
BasicsTest.php Fix passing a null input to h function 2023-12-19 15:27:45 +01:00