wordpress-develop/tests/phpunit/tests/functions
Sergey Biryukov 735ecc0ba9 Tests: Use assertSame() in _wp_to_kebab_case() tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [51079], [51198].

See #52482, #52625, #53397.

git-svn-id: https://develop.svn.wordpress.org/trunk@51225 602fd350-edb4-49c9-b593-d223f7449a82
2021-06-24 06:51:54 +00:00
..
addMagicQuotes.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
allowedProtocols.php Add ircs and irc6 to the list of allowed protocols. 2020-09-26 21:00:19 +00:00
anonymization.php Tests: Convert a few more function_exists() and extension_loaded() checks to @requires annotations. 2020-09-21 13:25:38 +00:00
canonicalCharset.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
cleanupHeaderComment.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
deprecated.php Build/Test Tools: Fix and standardise calls to the tearDown() method in the test suite. 2021-02-27 17:08:26 +00:00
doEnclose.php Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method. 2021-03-01 18:42:49 +00:00
getStatusHeaderDesc.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
getWeekstartend.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
isNewDay.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
isSerializedString.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
listFiles.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
numberFormatI18n.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
pluginBasename.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
referer.php Build/Test Tools: Fix and standardise calls to the tearDown() method in the test suite. 2021-02-27 17:08:26 +00:00
removeQueryArg.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
sizeFormat.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
underscoreReturn.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wp.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpArrayGet.php Tests: Remove trailing commas in function calls in _wp_array_get() tests. 2021-05-24 13:46:39 +00:00
wpArraySet.php Tests: Correct description for the Tests_Functions_wpArraySet class. 2021-05-24 12:27:35 +00:00
wpArraySliceAssoc.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpAuthCheck.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpGetArchives.php Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
wpGetMimeTypes.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpListFilter.php Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
wpListUtil.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpRemoteFopen.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00
wpToKebabCase.php Tests: Use assertSame() in _wp_to_kebab_case() tests. 2021-06-24 06:51:54 +00:00
wpValidateBoolean.php Tests: Add missing @covers tags for files in phpunit/tests/functions/. 2020-09-19 15:52:03 +00:00