<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[49006] trunk/tests/phpunit/tests/functions: Tests: Add missing `@covers` tags for files in `phpunit/tests/functions/`.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/49006">49006</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/49006","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-09-19 15:52:03 +0000 (Sat, 19 Sep 2020)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Tests: Add missing `@covers` tags for files in `phpunit/tests/functions/`.
Props pbearne, jrf.
See <a href="https://core.trac.wordpress.org/ticket/39265">#39265</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestsfunctionsaddMagicQuotesphp">trunk/tests/phpunit/tests/functions/addMagicQuotes.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsallowedProtocolsphp">trunk/tests/phpunit/tests/functions/allowedProtocols.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsanonymizationphp">trunk/tests/phpunit/tests/functions/anonymization.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionscanonicalCharsetphp">trunk/tests/phpunit/tests/functions/canonicalCharset.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionscleanupHeaderCommentphp">trunk/tests/phpunit/tests/functions/cleanupHeaderComment.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsdeprecatedphp">trunk/tests/phpunit/tests/functions/deprecated.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsdoEnclosephp">trunk/tests/phpunit/tests/functions/doEnclose.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsgetStatusHeaderDescphp">trunk/tests/phpunit/tests/functions/getStatusHeaderDesc.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsgetWeekstartendphp">trunk/tests/phpunit/tests/functions/getWeekstartend.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsisNewDayphp">trunk/tests/phpunit/tests/functions/isNewDay.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsisSerializedStringphp">trunk/tests/phpunit/tests/functions/isSerializedString.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionslistFilesphp">trunk/tests/phpunit/tests/functions/listFiles.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsnumberFormatI18nphp">trunk/tests/phpunit/tests/functions/numberFormatI18n.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionspluginBasenamephp">trunk/tests/phpunit/tests/functions/pluginBasename.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsrefererphp">trunk/tests/phpunit/tests/functions/referer.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsremoveQueryArgphp">trunk/tests/phpunit/tests/functions/removeQueryArg.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionssizeFormatphp">trunk/tests/phpunit/tests/functions/sizeFormat.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsunderscoreReturnphp">trunk/tests/phpunit/tests/functions/underscoreReturn.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpphp">trunk/tests/phpunit/tests/functions/wp.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpArraySliceAssocphp">trunk/tests/phpunit/tests/functions/wpArraySliceAssoc.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpAuthCheckphp">trunk/tests/phpunit/tests/functions/wpAuthCheck.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpGetArchivesphp">trunk/tests/phpunit/tests/functions/wpGetArchives.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpGetMimeTypesphp">trunk/tests/phpunit/tests/functions/wpGetMimeTypes.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpListFilterphp">trunk/tests/phpunit/tests/functions/wpListFilter.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpListUtilphp">trunk/tests/phpunit/tests/functions/wpListUtil.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpRemoteFopenphp">trunk/tests/phpunit/tests/functions/wpRemoteFopen.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionswpValidateBooleanphp">trunk/tests/phpunit/tests/functions/wpValidateBoolean.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunittestsfunctionsaddMagicQuotesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/addMagicQuotes.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/addMagicQuotes.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/addMagicQuotes.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,6 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @group formatting
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::add_magic_quotes
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_AddMagicQuotes extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsallowedProtocolsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/allowedProtocols.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/allowedProtocols.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/allowedProtocols.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,6 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @group formatting
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_allowed_protocols
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_AllowedProtocols extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsanonymizationphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/anonymization.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/anonymization.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/anonymization.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,12 +10,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Class Tests_Functions_Anonymization.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 4.9.6
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><span class="cx" style="display: block; padding: 0 10px"> * @group privacy
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @since 4.9.6
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_privacy_anonymize_data
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_Anonymization extends WP_UnitTestCase {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test that wp_privacy_anonymize_ip() properly anonymizes all possible IP address formats.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionscanonicalCharsetphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/canonicalCharset.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/canonicalCharset.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/canonicalCharset.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,11 +1,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/*
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Validate that badly named charsets always return the correct format for UTF-8 and ISO-8859-1.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 4.8.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 4.8.0
+ *
+ * @group functions.php
+ * @covers ::_canonical_charset
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_CanonicalCharset extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_utf_8_lower() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -50,6 +52,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 23688
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::get_option
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_update_option_blog_charset() {
</span><span class="cx" style="display: block; padding: 0 10px"> $orig_blog_charset = get_option( 'blog_charset' );
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionscleanupHeaderCommentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/cleanupHeaderComment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/cleanupHeaderComment.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/cleanupHeaderComment.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,16 +1,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/*
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Test _cleanup_header_comment().
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @group functions.php
</del><span class="cx" style="display: block; padding: 0 10px"> * @ticket 8497
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 38101
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @group functions.php
+ * @covers ::_cleanup_header_comment
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_CleanupHeaderComment extends WP_UnitTestCase {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test cleanup header of header comment.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @covers ::_cleanup_header_comment
</del><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_cleanup_header_comment
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $test_string
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsdeprecatedphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/deprecated.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/deprecated.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/deprecated.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,10 +3,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Test cases for deprecated functions, arguments, and files
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @package WordPress
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @package WordPress
</ins><span class="cx" style="display: block; padding: 0 10px"> * @subpackage Unit Tests
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since 3.5.0
- * @group deprecated
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @since 3.5.0
+ *
+ * @group functions.php
+ * @group deprecated
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_Deprecated extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -140,6 +143,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 6821
</span><span class="cx" style="display: block; padding: 0 10px"> * @expectedDeprecated wp_save_image_file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::wp_save_image_file
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_save_image_file_deprecated_with_gd_resource() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'imagejpeg' ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -163,6 +168,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests that wp_save_image_file() doesn't have a deprecated argument when passed a WP_Image_Editor.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 6821
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::wp_save_image_file
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_save_image_file_not_deprecated_with_wp_image_editor() {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'imagejpeg' ) ) {
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsdoEnclosephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/doEnclose.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/doEnclose.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/doEnclose.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,11 +10,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests_Functions_DoEnclose class.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 5.3.0
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><span class="cx" style="display: block; padding: 0 10px"> * @group post
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::do_enclose
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @since 5.3.0
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_DoEnclose extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -253,7 +253,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.3.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $post_id Post ID.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string All enclosure data for the given post.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string All enclosure data for the given post.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function get_enclosed_by_post_id( $post_id ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return implode( '', (array) get_post_meta( $post_id, 'enclosure', false ) );
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsgetStatusHeaderDescphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/getStatusHeaderDesc.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/getStatusHeaderDesc.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/getStatusHeaderDesc.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,6 +6,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.3.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::get_status_header_desc
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_GetStatusHeaderDesc extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsgetWeekstartendphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/getWeekstartend.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/getWeekstartend.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/getWeekstartend.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,6 +2,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::get_weekstartend
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_GetWeekstartend extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsisNewDayphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/isNewDay.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/isNewDay.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/isNewDay.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,6 +5,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::is_new_day
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_IsNewDate extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsisSerializedStringphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/isSerializedString.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/isSerializedString.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/isSerializedString.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,8 +3,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests for `is_serialized_string()`.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @ticket 42870
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 42870
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::is_serialized_string
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_IsSerializedString extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionslistFilesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/listFiles.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/listFiles.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/listFiles.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,8 +4,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Test list_files().
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::list_files
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_ListFiles extends WP_UnitTestCase {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_list_files_returns_a_list_of_files() {
</span><span class="cx" style="display: block; padding: 0 10px"> $admin_files = list_files( ABSPATH . 'wp-admin/' );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertInternalType( 'array', $admin_files );
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsnumberFormatI18nphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/numberFormatI18n.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/numberFormatI18n.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/numberFormatI18n.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,8 +5,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><span class="cx" style="display: block; padding: 0 10px"> * @group i18n
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::number_format_i18n
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_NumberFormatI18n extends WP_UnitTestCase {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_should_fall_back_to_number_format_when_wp_locale_is_not_set() {
</span><span class="cx" style="display: block; padding: 0 10px"> $locale = clone $GLOBALS['wp_locale'];
</span><span class="cx" style="display: block; padding: 0 10px"> $GLOBALS['wp_locale'] = null;
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionspluginBasenamephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/pluginBasename.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/pluginBasename.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/pluginBasename.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,6 +5,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><span class="cx" style="display: block; padding: 0 10px"> * @group plugins
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::plugin_basename
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_PluginBasename extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsrefererphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/referer.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/referer.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/referer.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,8 +4,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Test wp_get_referer().
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_get_referer
+ * @covers ::wp_get_raw_referer
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_Referer extends WP_UnitTestCase {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px"> parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsremoveQueryArgphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/removeQueryArg.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/removeQueryArg.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/removeQueryArg.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,8 +2,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::remove_query_arg
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_RemoveQueryArg extends WP_UnitTestCase {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider remove_query_arg_provider
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionssizeFormatphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/sizeFormat.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/sizeFormat.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/sizeFormat.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,10 +3,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests for size_format()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @ticket 36635
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 36635
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::size_format
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_SizeFormat extends WP_UnitTestCase {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> public function _data_size_format() {
</span><span class="cx" style="display: block; padding: 0 10px"> return array(
</span><span class="cx" style="display: block; padding: 0 10px"> array( array(), 0, false ),
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsunderscoreReturnphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/underscoreReturn.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/underscoreReturn.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/underscoreReturn.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8,26 +8,44 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_UnderscoreReturn extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::__return_true
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test__return_true() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertTrue( __return_true() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::__return_false
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test__return_false() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( __return_false() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::__return_zero
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test__return_zero() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 0, __return_zero() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::__return_empty_array
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test__return_empty_array() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( array(), __return_empty_array() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::__return_null
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test__return_null() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertNull( __return_null() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::__return_empty_string
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test__return_empty_string() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '', __return_empty_string() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wp.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wp.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/wp.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,6 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><span class="cx" style="display: block; padding: 0 10px"> * @group query
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_WP extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpArraySliceAssocphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wpArraySliceAssoc.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpArraySliceAssoc.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/wpArraySliceAssoc.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,8 +5,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.3.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @group functions.php
</ins><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_array_slice_assoc
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @group functions.php
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_wpArraySliceAssoc extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpAuthCheckphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wpAuthCheck.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpAuthCheck.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/wpAuthCheck.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,6 +4,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests for the behavior of `wp_auth_check()`
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::is_user_logged_in
+ * @covers ::wp_auth_check
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_wpAuthCheck extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpGetArchivesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wpGetArchives.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpGetArchives.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/wpGetArchives.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,12 +1,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/*
-$defaults = array(
- 'type' => 'monthly', 'limit' => '',
- 'format' => 'html', 'before' => '',
- 'after' => '', 'show_post_count' => false,
- 'echo' => 1, 'order' => 'DESC',
-);
-*/
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+/**
+ * @group functions.php
+ * @covers ::wp_get_archives
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_wpGetArchives extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px"> protected static $post_ids;
</span><span class="cx" style="display: block; padding: 0 10px"> protected $month_url;
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpGetMimeTypesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wpGetMimeTypes.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpGetMimeTypes.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/wpGetMimeTypes.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,6 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Test wp_get_mime_types().
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_get_mime_types
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_wpGetMimeTypes extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpListFilterphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wpListFilter.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpListFilter.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/wpListFilter.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,6 +4,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Test wp_filter_object_list(), wp_list_filter(), wp_list_pluck().
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_filter_object_list
+ * @covers ::wp_list_pluck
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_wpListFilter extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px"> var $object_list = array();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -317,7 +319,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertArrayHasKey( 'baz', $list );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><span class="cx" style="display: block; padding: 0 10px"> function test_filter_object_list_nested_array_and_field() {
</span><span class="cx" style="display: block; padding: 0 10px"> $list = wp_filter_object_list( $this->object_list, array( 'field4' => array( 'blue' ) ), 'AND', 'name' );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( array( 'baz' => 'baz' ), $list );
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpListUtilphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wpListUtil.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpListUtil.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/wpListUtil.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -155,6 +155,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_test_wp_list_pluck
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_list_pluck
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param array $list List of objects or arrays.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|string $field Field from the object to place instead of the entire object
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int|string $index_key Field from the object to use as keys for the new array.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -359,6 +361,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_test_wp_list_filter
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_list_filter
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param array $list An array of objects to filter.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $args An array of key => value arguments to match
</span><span class="cx" style="display: block; padding: 0 10px"> * against each object.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -686,6 +690,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_test_wp_list_sort
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_list_sort
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $orderby Either the field name to order by or an array
</span><span class="cx" style="display: block; padding: 0 10px"> * of multiple orderby fields as $orderby => $order.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $order Either 'ASC' or 'DESC'.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1011,6 +1017,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_test_wp_list_sort_preserve_keys
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_list_sort
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $orderby Either the field name to order by or an array
</span><span class="cx" style="display: block; padding: 0 10px"> * of multiple orderby fields as $orderby => $order.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $order Either 'ASC' or 'DESC'.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1019,6 +1027,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $expected, wp_list_sort( $list, $orderby, $order, true ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers WP_List_Util::get_input
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_list_util_get_input() {
</span><span class="cx" style="display: block; padding: 0 10px"> $input = array( 'foo', 'bar' );
</span><span class="cx" style="display: block; padding: 0 10px"> $util = new WP_List_Util( $input );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1026,6 +1037,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSameSets( $input, $util->get_input() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers WP_List_Util::get_output
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_list_util_get_output_immediately() {
</span><span class="cx" style="display: block; padding: 0 10px"> $input = array( 'foo', 'bar' );
</span><span class="cx" style="display: block; padding: 0 10px"> $util = new WP_List_Util( $input );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1033,6 +1047,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSameSets( $input, $util->get_output() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers WP_List_Util::get_output
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_wp_list_util_get_output() {
</span><span class="cx" style="display: block; padding: 0 10px"> $expected = array(
</span><span class="cx" style="display: block; padding: 0 10px"> (object) array(
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpRemoteFopenphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wpRemoteFopen.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpRemoteFopen.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/wpRemoteFopen.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,6 +3,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @group http
</span><span class="cx" style="display: block; padding: 0 10px"> * @group external-http
</span><span class="cx" style="display: block; padding: 0 10px"> * @group functions.php
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @covers ::wp_remote_fopen
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_wpRemoteFopen extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionswpValidateBooleanphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/wpValidateBoolean.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/wpValidateBoolean.php 2020-09-19 11:11:00 UTC (rev 49005)
+++ trunk/tests/phpunit/tests/functions/wpValidateBoolean.php 2020-09-19 15:52:03 UTC (rev 49006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,8 +3,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests the wp_validate_boolean function.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @group functions.php
</ins><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_validate_boolean
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @group functions.php
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Functions_wpValidateBoolean extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -47,8 +47,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_provider
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param mixed $test_value.
- * @param bool $expected.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param mixed $test_value
+ * @param bool $expected
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 30238
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 39868
</span></span></pre>
</div>
</div>
</body>
</html>