<!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>[57344] trunk: I18N: Improve docblocks after [57337].</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/57344">57344</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/57344","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>swissspidy</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2024-01-24 07:55:53 +0000 (Wed, 24 Jan 2024)</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'>I18N: Improve docblocks after <a href="https://core.trac.wordpress.org/changeset/57337">[57337]</a>.
Props mukesh27.
See <a href="https://core.trac.wordpress.org/ticket/59656">#59656</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesclasswptextdomainregistryphp">trunk/src/wp-includes/class-wp-textdomain-registry.php</a></li>
<li><a href="#trunksrcwpincludesl10nclasswptranslationfilephp">trunk/src/wp-includes/l10n/class-wp-translation-file.php</a></li>
<li><a href="#trunksrcwpincludesl10nclasswptranslationsphp">trunk/src/wp-includes/l10n/class-wp-translations.php</a></li>
<li><a href="#trunktestsphpunittestsl10nwpTranslationControllerphp">trunk/tests/phpunit/tests/l10n/wpTranslationController.php</a></li>
<li><a href="#trunktestsphpunittestsl10nwpTranslationsphp">trunk/tests/phpunit/tests/l10n/wpTranslations.php</a></li>
<li><a href="#trunktestsphpunittestsl10nwpTranslationsConvertphp">trunk/tests/phpunit/tests/l10n/wpTranslationsConvert.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesclasswptextdomainregistryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-textdomain-registry.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-textdomain-registry.php 2024-01-24 03:28:27 UTC (rev 57343)
+++ trunk/src/wp-includes/class-wp-textdomain-registry.php 2024-01-24 07:55:53 UTC (rev 57344)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -225,7 +225,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $version The version of a theme, plugin, or core.
</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">- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function invalidate_mo_files_cache( $upgrader, $hook_extra ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if (
</span></span></pre></div>
<a id="trunksrcwpincludesl10nclasswptranslationfilephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/l10n/class-wp-translation-file.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/l10n/class-wp-translation-file.php 2024-01-24 03:28:27 UTC (rev 57343)
+++ trunk/src/wp-includes/l10n/class-wp-translation-file.php 2024-01-24 07:55:53 UTC (rev 57344)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -284,7 +284,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> abstract protected function parse_file();
</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"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Exports translation contents as a string.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunksrcwpincludesl10nclasswptranslationsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/l10n/class-wp-translations.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/l10n/class-wp-translations.php 2024-01-24 03:28:27 UTC (rev 57343)
+++ trunk/src/wp-includes/l10n/class-wp-translations.php 2024-01-24 07:55:53 UTC (rev 57344)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -80,8 +80,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 6.5.0
</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 string $original Original string to translate from MO file. Might contain
- * 0x04 as context separator or 0x00 as singular/plural separator.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $original Original string to translate from MO file. Might contain
+ * 0x04 as context separator or 0x00 as singular/plural separator.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $translations Translation strings from MO file.
</span><span class="cx" style="display: block; padding: 0 10px"> * @return Translation_Entry Entry instance.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre></div>
<a id="trunktestsphpunittestsl10nwpTranslationControllerphp"></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/l10n/wpTranslationController.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n/wpTranslationController.php 2024-01-24 03:28:27 UTC (rev 57343)
+++ trunk/tests/phpunit/tests/l10n/wpTranslationController.php 2024-01-24 07:55:53 UTC (rev 57344)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,9 +5,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @group i18n
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class WP_Translation_Controller_Tests extends WP_UnitTestCase {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /**
- * @return void
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function tear_down() {
</span><span class="cx" style="display: block; padding: 0 10px"> remove_all_filters( 'translation_file_format' );
</span><span class="cx" style="display: block; padding: 0 10px"> unload_textdomain( 'wp-tests-domain' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -21,8 +18,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::get_entries
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::get_headers
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::normalize_header
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -73,8 +68,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::get_entries
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::get_headers
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::normalize_header
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_textdomain_existing_override() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'override_load_textdomain', '__return_true' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -93,8 +86,6 @@
</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"> * @covers ::load_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_textdomain_php_files() {
</span><span class="cx" style="display: block; padding: 0 10px"> $load_php_successful = load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.l10n.php' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -107,8 +98,6 @@
</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"> * @covers ::load_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_textdomain_prefers_php_files_by_default() {
</span><span class="cx" style="display: block; padding: 0 10px"> $load_successful = load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -131,8 +120,6 @@
</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"> * @covers ::load_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_textdomain_reads_php_files_if_filtered_format_is_unsupported() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -158,8 +145,6 @@
</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"> * @covers ::load_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_textdomain_existing_translation_is_kept() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -183,8 +168,6 @@
</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"> * @covers ::load_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_textdomain_loads_existing_translation() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -205,8 +188,6 @@
</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"> * @covers ::load_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_textdomain_loads_existing_translation_mo_files() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -236,8 +217,6 @@
</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"> * @covers ::load_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_textdomain_loads_existing_translation_php_files() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -268,8 +247,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::get_entries
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::get_headers
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::normalize_header
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unload_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -296,8 +273,6 @@
</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"> * @covers ::unload_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unload_textdomain_existing_override() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'override_unload_textdomain', '__return_true' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -323,8 +298,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::unload_file
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::unload_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unload_non_existent_files_and_textdomains() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -338,8 +311,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::load_textdomain
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::unload_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_switch_to_locale_translations_stay_loaded_default_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> switch_to_locale( 'es_ES' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -363,8 +334,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::load_textdomain
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::unload_textdomain
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::change_locale
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_switch_to_locale_translations_stay_loaded_custom_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'en_US', WP_Translation_Controller::instance()->get_locale() );
</span></span></pre></div>
<a id="trunktestsphpunittestsl10nwpTranslationsphp"></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/l10n/wpTranslations.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n/wpTranslations.php 2024-01-24 03:28:27 UTC (rev 57343)
+++ trunk/tests/phpunit/tests/l10n/wpTranslations.php 2024-01-24 07:55:53 UTC (rev 57344)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,9 +6,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @group i18n
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class WP_Translations_Tests extends WP_UnitTestCase {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /**
- * @return void
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function tear_down() {
</span><span class="cx" style="display: block; padding: 0 10px"> unload_textdomain( 'wp-tests-domain' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -19,8 +16,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::__construct
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::__get
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::make_entry
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_entries() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -58,8 +53,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::__get
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::make_entry
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_entries_plural() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -99,8 +92,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::__get
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::make_entry
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_entries_context() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -145,8 +136,6 @@
</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"> * @covers ::__get
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_headers() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -174,8 +163,6 @@
</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"> * @covers ::__get
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_getter_unsupported_property() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -191,8 +178,6 @@
</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"> * @covers ::translate
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_translate() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -214,8 +199,6 @@
</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"> * @covers ::translate_plural
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_translate_plural() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -239,8 +222,6 @@
</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"> * @covers ::translate_plural
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_translate_plural_missing() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $l10n;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -265,8 +246,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::translate_plural
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 41257
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_translate_invalid_edge_cases() {
</span><span class="cx" style="display: block; padding: 0 10px"> load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' );
</span></span></pre></div>
<a id="trunktestsphpunittestsl10nwpTranslationsConvertphp"></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/l10n/wpTranslationsConvert.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n/wpTranslationsConvert.php 2024-01-24 03:28:27 UTC (rev 57343)
+++ trunk/tests/phpunit/tests/l10n/wpTranslationsConvert.php 2024-01-24 07:55:53 UTC (rev 57344)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8,8 +8,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> class WP_Translation_Controller_Convert_Tests extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::instance
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_instance() {
</span><span class="cx" style="display: block; padding: 0 10px"> $instance = WP_Translation_Controller::instance();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,9 +16,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $instance, $instance2 );
</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">- /**
- * @return void
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_no_files_loaded_returns_false() {
</span><span class="cx" style="display: block; padding: 0 10px"> $instance = new WP_Translation_Controller();
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( $instance->translate( 'singular' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,8 +24,6 @@
</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"> * @covers ::unload_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unload_not_loaded() {
</span><span class="cx" style="display: block; padding: 0 10px"> $instance = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -45,8 +38,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::translate
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::locate_translation
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::get_files
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unload_entire_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> $instance = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,8 +55,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::unload_file
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_File::get_file
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unload_file_is_not_actually_loaded() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -79,8 +68,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::unload_textdomain
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::is_textdomain_loaded
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unload_specific_locale() {
</span><span class="cx" style="display: block; padding: 0 10px"> $instance = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -111,9 +98,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $type
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $file_contents
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|bool $expected_error
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return void
- *
- * @phpstan-param 'mo'|'php' $type
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_invalid_files( string $type, string $file_contents, $expected_error = null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $file = $this->temp_filename();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -157,8 +141,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::load
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_Controller::is_textdomain_loaded
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_non_existent_file() {
</span><span class="cx" style="display: block; padding: 0 10px"> $instance = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -169,8 +151,6 @@
</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"> * @covers WP_Translation_File::create
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_non_existent_file() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( WP_Translation_File::create( 'this-file-does-not-exist' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -178,8 +158,6 @@
</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"> * @covers WP_Translation_File::create
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_invalid_filetype() {
</span><span class="cx" style="display: block; padding: 0 10px"> $file = $this->temp_filename();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -199,7 +177,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_simple_example_files
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $file
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_simple_translation_files( string $file ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -243,8 +220,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::get_files
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_File::get_plural_form
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_File::make_plural_form_function
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_multiple_files() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -293,8 +268,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::is_textdomain_loaded
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::translate
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::translate_plural
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_multiple_locales() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -334,8 +307,6 @@
</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"> * @covers ::unload_textdomain
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unload_with_multiple_locales() {
</span><span class="cx" style="display: block; padding: 0 10px"> $ginger_mo = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -371,8 +342,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::load
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::locate_translation
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_with_default_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -384,8 +353,6 @@
</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"> * @covers ::load
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_same_file_twice() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -397,8 +364,6 @@
</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"> * @covers ::load
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_file_is_already_loaded_for_different_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -418,8 +383,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers ::get_files
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_File::get_plural_form
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Translation_File::make_plural_form_function
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_load_no_plurals() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -439,8 +402,6 @@
</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"> * @covers ::get_headers
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_headers_no_loaded_translations() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -450,8 +411,6 @@
</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"> * @covers ::get_headers
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_headers_with_default_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -467,8 +426,6 @@
</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"> * @covers ::get_headers
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_headers_no_loaded_translations_for_domain() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -480,8 +437,6 @@
</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"> * @covers ::get_entries
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_entries_no_loaded_translations() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -491,8 +446,6 @@
</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"> * @covers ::get_entries
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_entries_with_default_textdomain() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -509,8 +462,6 @@
</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"> * @covers ::get_entries
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_entries_no_loaded_translations_for_domain() {
</span><span class="cx" style="display: block; padding: 0 10px"> $controller = new WP_Translation_Controller();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -524,9 +475,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $source_file
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $destination_format
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return void
- *
- * @phpstan-param 'mo'|'php' $destination_format
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_convert_format( string $source_file, string $destination_format ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $destination_file = $this->temp_filename();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -586,8 +534,6 @@
</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"> * @covers WP_Translation_File::transform
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @return void
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_convert_format_invalid_source() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( WP_Translation_File::transform( 'this-file-does-not-exist', 'invalid' ) );
</span></span></pre>
</div>
</div>
</body>
</html>