wordpress-develop/tests/phpunit/tests/option
Sergey Biryukov bafecbeab5 Code Modernization: Remove dynamic properties in Tests_*_Slashes.
Dynamic (non-explicitly declared) properties are deprecated as of PHP 8.2 and are expected to become a fatal error in PHP 9.0.

In this particular case, the test classes contain a `set_up()` method that sets a group of properties, which are ''used'' by the tests, but the values of these properties are never ''changed'' by the tests.

In other words, setting these properties in the `set_up()` is an unnecessary overhead and the properties should be changed to class constants.

Follow-up to [1041/tests], [1071/tests].

Props jrf.
See #56033.

git-svn-id: https://develop.svn.wordpress.org/trunk@53557 602fd350-edb4-49c9-b593-d223f7449a82
2022-06-23 14:24:08 +00:00
..
multisite.php Tests: Rename classes in phpunit/tests/option/ per the naming conventions. 2022-06-13 15:24:11 +00:00
networkOption.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
option.php Tests: Rename classes in phpunit/tests/option/ per the naming conventions. 2022-06-13 15:24:11 +00:00
registration.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
sanitizeOption.php Tests: Rename classes in phpunit/tests/option/ per the naming conventions. 2022-06-13 15:24:11 +00:00
siteOption.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
siteTransient.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
slashes.php Code Modernization: Remove dynamic properties in Tests_*_Slashes. 2022-06-23 14:24:08 +00:00
themeMods.php Tests: Rename classes in phpunit/tests/option/ per the naming conventions. 2022-06-13 15:24:11 +00:00
transient.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
updateOption.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
userSettings.php Tests: Rename classes in phpunit/tests/option/ per the naming conventions. 2022-06-13 15:24:11 +00:00
wpLoadAlloptions.php Tests: Rename classes in phpunit/tests/option/ per the naming conventions. 2022-06-13 15:24:11 +00:00
wpUserSettings.php Tests: Add a unit test for PHP 8.1 deprecation notice in wp_user_settings(). 2022-06-13 15:20:02 +00:00