<!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>[54728] trunk/tests/phpunit/tests/formatting: Tests: Move some `@covers` tags in the `formatting` group to the class DocBlock.</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/54728">54728</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/54728","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>2022-10-31 13:54:00 +0000 (Mon, 31 Oct 2022)</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: Move some `@covers` tags in the `formatting` group to the class DocBlock.
This aims to bring more consistency, as these test classes typically cover a single function, unless noted otherwise.
Follow-up to <a href="https://core.trac.wordpress.org/changeset/53562">[53562]</a>, <a href="https://core.trac.wordpress.org/changeset/53571">[53571]</a>, <a href="https://core.trac.wordpress.org/changeset/54051">[54051]</a>.
See <a href="https://core.trac.wordpress.org/ticket/56793">#56793</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestsformattingescUrlphp">trunk/tests/phpunit/tests/formatting/escUrl.php</a></li>
<li><a href="#trunktestsphpunittestsformattingexcerptRemoveBlocksphp">trunk/tests/phpunit/tests/formatting/excerptRemoveBlocks.php</a></li>
<li><a href="#trunktestsphpunittestsformattinggetBloginfophp">trunk/tests/phpunit/tests/formatting/getBloginfo.php</a></li>
<li><a href="#trunktestsphpunittestsformattingsanitizeKeyphp">trunk/tests/phpunit/tests/formatting/sanitizeKey.php</a></li>
<li><a href="#trunktestsphpunittestsformattingsanitizePostphp">trunk/tests/phpunit/tests/formatting/sanitizePost.php</a></li>
<li><a href="#trunktestsphpunittestsformattingwpBasenamephp">trunk/tests/phpunit/tests/formatting/wpBasename.php</a></li>
<li><a href="#trunktestsphpunittestsformattingwpHtmlSplitphp">trunk/tests/phpunit/tests/formatting/wpHtmlSplit.php</a></li>
<li><a href="#trunktestsphpunittestsformattingwpParseStrphp">trunk/tests/phpunit/tests/formatting/wpParseStr.php</a></li>
<li><a href="#trunktestsphpunittestsformattingwpTexturizephp">trunk/tests/phpunit/tests/formatting/wpTexturize.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunittestsformattingescUrlphp"></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/formatting/escUrl.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/escUrl.php 2022-10-31 13:22:22 UTC (rev 54727)
+++ trunk/tests/phpunit/tests/formatting/escUrl.php 2022-10-31 13:54:00 UTC (rev 54728)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,13 +2,13 @@
</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 formatting
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::esc_url
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Formatting_EscUrl extends WP_UnitTestCase {
</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 23605
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_spaces() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com/Mr%20WordPress', esc_url( 'http://example.com/Mr WordPress' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -21,9 +21,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com/?foo=one%20two%20three&bar=four', esc_url( 'http://example.com/?foo=one%20two%20three&bar=four' ) );
</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">- /**
- * @covers ::esc_url
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_bad_characters() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com/watchthelinefeedgo', esc_url( 'http://example.com/watchthelinefeed%0Ago' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com/watchthelinefeedgo', esc_url( 'http://example.com/watchthelinefeed%0ago' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -38,9 +35,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com/', esc_url( 'http://example.com/%0%0%0ADa' ) );
</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">- /**
- * @covers ::esc_url
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_relative() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '/example.php', esc_url( '/example.php' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'example.php', esc_url( 'example.php' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,7 +43,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"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> * @covers ::sanitize_url
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_all_url_parts() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -72,9 +65,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'https://user:pass@host.example.com:1234/path;p=1?query=2&r%5B%5D=3#fragment', esc_url( $url ) );
</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">- /**
- * @covers ::esc_url
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_bare() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com?foo', esc_url( 'example.com?foo' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com', esc_url( 'example.com' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -84,7 +74,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"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> * @covers ::sanitize_url
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_encoding() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -101,7 +90,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"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_allowed_protocols
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_protocol() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -168,8 +156,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"> * @ticket 23187
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_protocol_case() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com', esc_url( 'HTTP://example.com' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -176,17 +162,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com', esc_url( 'Http://example.com' ) );
</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">- /**
- * @covers ::esc_url
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_display_extras() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com/'quoted'', esc_url( 'http://example.com/\'quoted\'' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.com/\'quoted\'', esc_url( 'http://example.com/\'quoted\'', null, 'notdisplay' ) );
</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">- /**
- * @covers ::esc_url
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_non_ascii() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://example.org/баба', esc_url( 'http://example.org/баба' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://баба.org/баба', esc_url( 'http://баба.org/баба' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -193,9 +173,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'http://müller.com/', esc_url( 'http://müller.com/' ) );
</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">- /**
- * @covers ::esc_url
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_feed() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '', esc_url( 'feed:javascript:alert(1)' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '', esc_url( 'feed:javascript:feed:alert(1)' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -206,8 +183,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"> * @ticket 16859
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_square_brackets() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '/example.php?one%5B%5D=two', esc_url( '/example.php?one[]=two' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -233,8 +208,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"> * @ticket 21974
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_protocol_relative_with_colon() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '//example.com/foo?foo=abc:def', esc_url( '//example.com/foo?foo=abc:def' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -242,8 +215,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"> * @ticket 31632
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_mailto_with_newline() {
</span><span class="cx" style="display: block; padding: 0 10px"> $body = <<<EOT
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -259,8 +230,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"> * @ticket 31632
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_mailto_in_http_url_with_newline() {
</span><span class="cx" style="display: block; padding: 0 10px"> $body = <<<EOT
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -276,8 +245,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"> * @ticket 23605
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_mailto_with_spaces() {
</span><span class="cx" style="display: block; padding: 0 10px"> $body = 'Hi there, I thought you might want to sign up for this newsletter';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -298,8 +265,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"> * @ticket 34202
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::esc_url
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_ipv6_hosts() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '//[::127.0.0.1]', esc_url( '//[::127.0.0.1]' ) );
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingexcerptRemoveBlocksphp"></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/formatting/excerptRemoveBlocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/excerptRemoveBlocks.php 2022-10-31 13:22:22 UTC (rev 54727)
+++ trunk/tests/phpunit/tests/formatting/excerptRemoveBlocks.php 2022-10-31 13:54:00 UTC (rev 54728)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3,6 +3,8 @@
</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"> * @ticket 46133
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::excerpt_remove_blocks
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Formatting_ExcerptRemoveBlocks 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">@@ -90,8 +92,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests excerpt_remove_blocks().
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 46133
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::excerpt_remove_blocks
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_excerpt_remove_blocks() {
</span><span class="cx" style="display: block; padding: 0 10px"> // Simple dynamic block..
</span></span></pre></div>
<a id="trunktestsphpunittestsformattinggetBloginfophp"></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/formatting/getBloginfo.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/getBloginfo.php 2022-10-31 13:22:22 UTC (rev 54727)
+++ trunk/tests/phpunit/tests/formatting/getBloginfo.php 2022-10-31 13:54:00 UTC (rev 54728)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -37,6 +37,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"> * @ticket 27942
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @covers ::sanitize_option
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_bloginfo_sanitize_option() {
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingsanitizeKeyphp"></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/formatting/sanitizeKey.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/sanitizeKey.php 2022-10-31 13:22:22 UTC (rev 54727)
+++ trunk/tests/phpunit/tests/formatting/sanitizeKey.php 2022-10-31 13:54:00 UTC (rev 54728)
</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 formatting
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @covers ::sanitize_key
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Formatting_SanitizeKey extends WP_UnitTestCase {
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingsanitizePostphp"></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/formatting/sanitizePost.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/sanitizePost.php 2022-10-31 13:22:22 UTC (rev 54727)
+++ trunk/tests/phpunit/tests/formatting/sanitizePost.php 2022-10-31 13:54:00 UTC (rev 54728)
</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 formatting
</span><span class="cx" style="display: block; padding: 0 10px"> * @group post
</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 ::sanitize_post
</ins><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_Post::__construct
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Formatting_SanitizePost extends WP_UnitTestCase {
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingwpBasenamephp"></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/formatting/wpBasename.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/wpBasename.php 2022-10-31 13:22:22 UTC (rev 54727)
+++ trunk/tests/phpunit/tests/formatting/wpBasename.php 2022-10-31 13:54:00 UTC (rev 54728)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,7 +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 formatting
</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"> * @covers ::wp_basename
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Formatting_wpBasename extends WP_UnitTestCase {
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingwpHtmlSplitphp"></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/formatting/wpHtmlSplit.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/wpHtmlSplit.php 2022-10-31 13:22:22 UTC (rev 54727)
+++ trunk/tests/phpunit/tests/formatting/wpHtmlSplit.php 2022-10-31 13:54:00 UTC (rev 54728)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,6 +2,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"> * @group formatting
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::wp_html_split
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Formatting_wpHtmlSplit 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">@@ -9,8 +11,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Basic functionality goes here.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_basic_features
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wp_html_split
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_basic_features( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->assertSame( $output, wp_html_split( $input ) );
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingwpParseStrphp"></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/formatting/wpParseStr.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/wpParseStr.php 2022-10-31 13:22:22 UTC (rev 54727)
+++ trunk/tests/phpunit/tests/formatting/wpParseStr.php 2022-10-31 13:54:00 UTC (rev 54728)
</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 formatting
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @covers ::wp_parse_str
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Formatting_wpParseStr extends WP_UnitTestCase {
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingwpTexturizephp"></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/formatting/wpTexturize.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/wpTexturize.php 2022-10-31 13:22:22 UTC (rev 54727)
+++ trunk/tests/phpunit/tests/formatting/wpTexturize.php 2022-10-31 13:54:00 UTC (rev 54728)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2,20 +2,16 @@
</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 formatting
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::wptexturize
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Formatting_wpTexturize extends WP_UnitTestCase {
</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 ::wptexturize
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_dashes() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'Hey — boo?', wptexturize( 'Hey -- boo?' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '<a href="http://xx--xx">Hey — boo?</a>', wptexturize( '<a href="http://xx--xx">Hey -- boo?</a>' ) );
</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">- /**
- * @covers ::wptexturize
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_disable() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '<pre>---&</pre>', wptexturize( '<pre>---&</pre>' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '<pre><code></code>--&</pre>', wptexturize( '<pre><code></code>--&</pre>' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -41,8 +37,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"> * @ticket 1418
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_bracketed_quotes_1418() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '(“test”)', wptexturize( '("test")' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -52,8 +46,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"> * @ticket 3810
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_bracketed_quotes_3810() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'A dog (“Hubertus”) was sent out.', wptexturize( 'A dog ("Hubertus") was sent out.' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -61,8 +53,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"> * @ticket 4539
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_basic_quotes() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'test’s', wptexturize( 'test\'s' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -86,8 +76,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 4539
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 15241
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_full_sentences_with_unmatched_single_quotes() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -98,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"> * @ticket 4539
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_quotes() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '“Quoted String”', wptexturize( '"Quoted String"' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -119,8 +105,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"> * @ticket 4539
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_quotes_before_s() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'test’s', wptexturize( "test's" ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -132,8 +116,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"> * @ticket 4539
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_quotes_before_numbers() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'Class of ’99', wptexturize( "Class of '99" ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -162,9 +144,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '}”Class of ’99″{', wptexturize( "}\"Class of '99\"{" ) );
</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">- /**
- * @covers ::wptexturize
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_quotes_after_numbers() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'Class of ’99', wptexturize( "Class of '99" ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -172,8 +151,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 4539
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 15241
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_other_html() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '‘<strong>', wptexturize( "'<strong>" ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -181,16 +158,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // $this->assertSame( '“<strong>Quoted Text</strong>”,', wptexturize( '"<strong>Quoted Text</strong>",' ) );
</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">- /**
- * @covers ::wptexturize
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_x() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '14×24', wptexturize( '14x24' ) );
</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">- /**
- * @covers ::wptexturize
- */
</del><span class="cx" style="display: block; padding: 0 10px"> public function test_minutes_seconds() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '9′', wptexturize( '9\'' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '9″', wptexturize( '9"' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -204,8 +175,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"> * @ticket 8775
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wptexturize_quotes_around_numbers() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '“12345”', wptexturize( '"12345"' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -216,8 +185,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"> * @ticket 8912
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_wptexturize_html_comments() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '<!--[if !IE]>--><!--<![endif]-->', wptexturize( '<!--[if !IE]>--><!--<![endif]-->' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -228,8 +195,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 4539
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 15241
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_entity_quote_cuddling() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( ' “Testing”', wptexturize( ' "Testing"' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -238,8 +203,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"> * @ticket 22823
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_apostrophes_before_primes() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'WordPress 3.5’s release date', wptexturize( "WordPress 3.5's release date" ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -247,8 +210,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"> * @ticket 23185
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_spaces_around_hyphens() {
</span><span class="cx" style="display: block; padding: 0 10px"> $nbsp = "\xC2\xA0";
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -272,8 +233,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"> * @ticket 31030
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_hyphens_at_start_and_end() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( '– ', wptexturize( '- ' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -291,8 +250,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * These should never happen, even if the desired output changes some day.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_spaces_around_quotes_never() {
</span><span class="cx" style="display: block; padding: 0 10px"> $nbsp = "\xC2\xA0";
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -310,8 +267,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_spaces_around_quotes
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_spaces_around_quotes( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -368,8 +323,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_apos_before_digits
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_apos_before_digits( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -411,8 +364,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_opening_single_quote
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_opening_single_quote( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -542,8 +493,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_double_prime
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_double_prime( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -577,8 +526,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_single_prime
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_single_prime( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -612,8 +559,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_contractions
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_contractions( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -655,8 +600,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_opening_quote
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_opening_quote( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -734,8 +677,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_closing_quote
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_closing_quote( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -825,8 +766,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_closing_single_quote
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_closing_single_quote( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -917,8 +856,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 30445
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_multiplication
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_multiplication( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -969,8 +906,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_ampersand
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_ampersand( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1036,8 +971,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_cockney
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_cockney( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1099,8 +1032,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_smart_dashes
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_smart_dashes( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1154,8 +1085,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 22692
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_misc_static_replacements
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_misc_static_replacements( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1211,8 +1140,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 8775
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_quoted_numbers
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_quoted_numbers( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1264,8 +1191,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 20342
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_quotes_and_dashes
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_quotes_and_dashes( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1329,8 +1254,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 12690
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_tag_avoidance
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_tag_avoidance( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1554,8 +1477,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 26850
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_year_abbr
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_year_abbr( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1645,8 +1566,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 27426
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_translate
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_translate( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'gettext_with_context', array( $this, 'filter_translate' ), 10, 4 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1874,8 +1793,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 28483
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_element_stack
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_element_stack( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1927,8 +1844,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 29557
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_unregistered_shortcodes
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_unregistered_shortcodes( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'no_texturize_shortcodes', array( $this, 'filter_shortcodes' ), 10, 1 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2014,8 +1929,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 29256
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_primes_vs_quotes
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_primes_vs_quotes( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $output, wptexturize( $input ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2078,8 +1991,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 29256
</span><span class="cx" style="display: block; padding: 0 10px"> * @dataProvider data_primes_quotes_translation
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_primes_quotes_translation( $input, $output ) {
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'gettext_with_context', array( $this, 'filter_translate2' ), 10, 4 );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2196,8 +2107,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Ensure that a trailing less-than symbol doesn't cause a PHP warning.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 35864
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @covers ::wptexturize
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_trailing_less_than() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'F–oo<', wptexturize( 'F--oo<', true ) );
</span></span></pre>
</div>
</div>
</body>
</html>