<!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>[581] wp-testcase: Use &quot;\n&quot; explicitly.</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 { 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, #logmsg > ol { margin-left: 0; 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">
<dt>Revision</dt> <dd><a href="http://unit-tests.trac.wordpress.org/changeset/581">581</a></dd>
<dt>Author</dt> <dd>kurtpayne</dd>
<dt>Date</dt> <dd>2012-03-20 17:52:11 +0000 (Tue, 20 Mar 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use &quot;\n&quot; explicitly.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#wptestcasetest_includes_pluggablephp">wp-testcase/test_includes_pluggable.php</a></li>
<li><a href="#wptestcasetest_includes_wpscriptsphp">wp-testcase/test_includes_wp-scripts.php</a></li>
<li><a href="#wptestcasetest_includes_wpstylesphp">wp-testcase/test_includes_wp-styles.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="wptestcasetest_includes_pluggablephp"></a>
<div class="modfile"><h4>Modified: wp-testcase/test_includes_pluggable.php (580 => 581)</h4>
<pre class="diff"><span>
<span class="info">--- wp-testcase/test_includes_pluggable.php        2012-03-18 04:35:44 UTC (rev 580)
+++ wp-testcase/test_includes_pluggable.php        2012-03-20 17:52:11 UTC (rev 581)
</span><span class="lines">@@ -49,51 +49,51 @@
</span><span class="cx">         function test_wp_mail_custom_boundaries() {
</span><span class="cx">                 $to = 'user@example.com';
</span><span class="cx">                 $subject = 'Test email with custom boundaries';
</span><del>-                $headers = '
-MIME-Version: 1.0
-Content-Type: multipart/mixed; boundary=&quot;----=_Part_4892_25692638.1192452070893&quot;
-';
-                $body = '
-------=_Part_4892_25692638.1192452070893
-Content-Type: text/plain; charset=ISO-8859-1
-Content-Transfer-Encoding: 7bit
-Content-Disposition: inline
</del><ins>+                $headers  = '' . &quot;\n&quot;;
+                $headers .= 'MIME-Version: 1.0' . &quot;\n&quot;;
+                $headers .= 'Content-Type: multipart/mixed; boundary=&quot;----=_Part_4892_25692638.1192452070893&quot;' . &quot;\n&quot;;
+                $headers .= &quot;\n&quot;;
+                $body  = &quot;\n&quot;;
+                $body .= '------=_Part_4892_25692638.1192452070893' . &quot;\n&quot;;
+                $body .= 'Content-Type: text/plain; charset=ISO-8859-1' . &quot;\n&quot;;
+                $body .= 'Content-Transfer-Encoding: 7bit' . &quot;\n&quot;;
+                $body .= 'Content-Disposition: inline' . &quot;\n&quot;;
+                $body .= &quot;\n&quot;;
+                $body .= 'Here is a message with an attachment of a binary file.' . &quot;\n&quot;;
+                $body .= &quot;\n&quot;;
+                $body .= '------=_Part_4892_25692638.1192452070893' . &quot;\n&quot;;
+                $body .= 'Content-Type: image/x-icon; name=favicon.ico' . &quot;\n&quot;;
+                $body .= 'Content-Transfer-Encoding: base64' . &quot;\n&quot;;
+                $body .= 'Content-Disposition: attachment; filename=favicon.ico' . &quot;\n&quot;;
+                $body .= &quot;\n&quot;;
+                $body .= 'AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAA' . &quot;\n&quot;;
+                $body .= 'AAAAAAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA' . &quot;\n&quot;;
+                $body .= '/wD/AP//AAD///8A//3/AP39/wD6/f8A+P3/AP/8/wD9/P8A+vz/AP/7/wD/+v8A/vr/APz6/wD4' . &quot;\n&quot;;
+                $body .= '+v8A+/n/APP5/wD/+P8A+vj/AO/4/wDm+P8A2fj/AP/3/wD/9v8A9vb/AP/1/wD69f8A9PT/AO30' . &quot;\n&quot;;
+                $body .= '/wD/8/8A//L/APnx/wD28P8A///+APj//gD2//4A9P/+AOP//gD//f4A6f/9AP///AD2//wA8//8' . &quot;\n&quot;;
+                $body .= 'APf9/AD///sA/v/7AOD/+wD/+vsA9/X7APr/+gDv/voA///5AP/9+QD/+/kA+e35AP//+ADm//gA' . &quot;\n&quot;;
+                $body .= '4f/4AP/9+AD0+/gA///3APv/9wDz//cA8f/3AO3/9wD/8fcA//32AP369gDr+vYA8f/1AOv/9QD/' . &quot;\n&quot;;
+                $body .= '+/UA///0APP/9ADq//QA///zAP/18wD///IA/fzyAP//8QD///AA9//wAPjw8AD//+8A8//vAP//' . &quot;\n&quot;;
+                $body .= '7gD9/+4A9v/uAP/u7gD//+0A9v/tAP7/6wD/+eoA///pAP//6AD2/+gA//nnAP/45wD38eYA/fbl' . &quot;\n&quot;;
+                $body .= 'AP/25AD29uQA7N/hAPzm4AD/690AEhjdAAAa3AAaJdsA//LXAC8g1gANH9YA+dnTAP/n0gDh5dIA' . &quot;\n&quot;;
+                $body .= 'DyjSABkk0gAdH9EABxDRAP/l0AAAJs4AGRTOAPPczQAAKs0AIi7MAA4UywD56soA8tPKANTSygD/' . &quot;\n&quot;;
+                $body .= '18kA6NLHAAAjxwDj28QA/s7CAP/1wQDw3r8A/9e8APrSrwDCtqoAzamjANmPiQDQj4YA35mBAOme' . &quot;\n&quot;;
+                $body .= 'fgDHj3wA1qR6AO+sbwDpmm8A2IVlAKmEYgCvaFoAvHNXAEq2VgA5s1UAPbhQAFWtTwBStU0ARbNN' . &quot;\n&quot;;
+                $body .= 'AEGxTQA7tEwAObZIAEq5RwDKdEYAULhDANtuQgBEtTwA1ls3ALhgMQCxNzEA2FsvAEC3LQB0MCkA' . &quot;\n&quot;;
+                $body .= 'iyYoANZTJwDLWyYAtjMlALE6JACZNSMAuW4iANlgIgDoWCEAylwgAMUuIAD3Vh8A52gdALRCHQCx' . &quot;\n&quot;;
+                $body .= 'WhwAsEkcALU4HACMOBwA0V4bAMYyGgCPJRoA218ZAJM7FwC/PxYA0msVAM9jFQD2XBUAqioVAIAf' . &quot;\n&quot;;
+                $body .= 'FQDhYRQAujMTAMUxEwCgLBMAnxIPAMsqDgCkFgsA6GMHALE2BAC9JQAAliIAAFYTAAAAAAAAAAAA' . &quot;\n&quot;;
+                $body .= 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' . &quot;\n&quot;;
+                $body .= 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/' . &quot;\n&quot;;
+                $body .= '//8AsbGxsbGxsbGxsbGxsbGxd7IrMg8PDw8PDw8PUBQeJXjQYE9PcKPM2NfP2sWhcg+BzTE7dLjb' . &quot;\n&quot;;
+                $body .= 'mG03YWaV4JYye8MPbsLZlEouKRRCg9SXMoW/U53enGRAFzCRtNO7mTiAyliw30gRTg9VbJCKfYs0' . &quot;\n&quot;;
+                $body .= 'j9VmuscfLTFbIy8SOhA0Inq5Y77GNBMYIxQUJzM2Vxx2wEmfyCYWMRldXCg5MU0aicRUms58SUVe' . &quot;\n&quot;;
+                $body .= 'RkwjPBRSNIfBMkSgvWkyPxVHFIaMSx1/0S9nkq7WdWo1a43Jt2UqgtJERGJ5m6K8y92znpNWIYS1' . &quot;\n&quot;;
+                $body .= 'UQ89Mmg5cXNaX0EkGyyI3KSsp6mvpaqosaatq7axsQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' . &quot;\n&quot;;
+                $body .= 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=' . &quot;\n&quot;;
+                $body .= '------=_Part_4892_25692638.1192452070893--' . &quot;\n&quot;;
+                $body .= &quot;\n&quot;;
</ins><span class="cx"> 
</span><del>-Here is a message with an attachment of a binary file.
-
-------=_Part_4892_25692638.1192452070893
-Content-Type: image/x-icon; name=favicon.ico
-Content-Transfer-Encoding: base64
-Content-Disposition: attachment; filename=favicon.ico
-
-AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAA
-AAAAAAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA
-/wD/AP//AAD///8A//3/AP39/wD6/f8A+P3/AP/8/wD9/P8A+vz/AP/7/wD/+v8A/vr/APz6/wD4
-+v8A+/n/APP5/wD/+P8A+vj/AO/4/wDm+P8A2fj/AP/3/wD/9v8A9vb/AP/1/wD69f8A9PT/AO30
-/wD/8/8A//L/APnx/wD28P8A///+APj//gD2//4A9P/+AOP//gD//f4A6f/9AP///AD2//wA8//8
-APf9/AD///sA/v/7AOD/+wD/+vsA9/X7APr/+gDv/voA///5AP/9+QD/+/kA+e35AP//+ADm//gA
-4f/4AP/9+AD0+/gA///3APv/9wDz//cA8f/3AO3/9wD/8fcA//32AP369gDr+vYA8f/1AOv/9QD/
-+/UA///0APP/9ADq//QA///zAP/18wD///IA/fzyAP//8QD///AA9//wAPjw8AD//+8A8//vAP//
-7gD9/+4A9v/uAP/u7gD//+0A9v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gvWkyPxVHFIaMSx1/0S9nkq7WdWo1a43Jt2UqgtJERGJ5m6K8y92znpNWIYS1
-UQ89Mmg5cXNaX0EkGyyI3KSsp6mvpaqosaatq7axsQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
-------=_Part_4892_25692638.1192452070893--
-';
-
</del><span class="cx">                 unset($GLOBALS['phpmailer']-&gt;mock_sent);
</span><span class="cx">                 $_SERVER['SERVER_NAME'] = 'example.com';
</span><span class="cx">                 wp_mail($to, $subject, $body, $headers);
</span></span></pre></div>
<a id="wptestcasetest_includes_wpscriptsphp"></a>
<div class="modfile"><h4>Modified: wp-testcase/test_includes_wp-scripts.php (580 => 581)</h4>
<pre class="diff"><span>
<span class="info">--- wp-testcase/test_includes_wp-scripts.php        2012-03-18 04:35:44 UTC (rev 580)
+++ wp-testcase/test_includes_wp-scripts.php        2012-03-20 17:52:11 UTC (rev 581)
</span><span class="lines">@@ -25,11 +25,11 @@
</span><span class="cx">                 wp_enqueue_script('empty-deps-version', 'example.com', array(), 1.2);
</span><span class="cx">                 wp_enqueue_script('empty-deps-null-version', 'example.com', array(), null);
</span><span class="cx">                 $ver = get_bloginfo( 'version' );
</span><del>-                $expected = &quot;&lt;script type='text/javascript' src='http://example.com?ver=$ver'&gt;&lt;/script&gt;
-&lt;script type='text/javascript' src='http://example.com?ver=$ver'&gt;&lt;/script&gt;
-&lt;script type='text/javascript' src='http://example.com?ver=1.2'&gt;&lt;/script&gt;
-&lt;script type='text/javascript' src='http://example.com'&gt;&lt;/script&gt;
-&quot;;
</del><ins>+                $expected  = &quot;&lt;script type='text/javascript' src='http://example.com?ver=$ver'&gt;&lt;/script&gt;\n&quot;;
+                $expected .= &quot;&lt;script type='text/javascript' src='http://example.com?ver=$ver'&gt;&lt;/script&gt;\n&quot;;
+                $expected .= &quot;&lt;script type='text/javascript' src='http://example.com?ver=1.2'&gt;&lt;/script&gt;\n&quot;;
+                $expected .= &quot;&lt;script type='text/javascript' src='http://example.com'&gt;&lt;/script&gt;\n&quot;;
+
</ins><span class="cx">                 $this-&gt;assertEquals($expected, get_echo('wp_print_scripts'));
</span><span class="cx"> 
</span><span class="cx">                 // No scripts left to print
</span></span></pre></div>
<a id="wptestcasetest_includes_wpstylesphp"></a>
<div class="modfile"><h4>Modified: wp-testcase/test_includes_wp-styles.php (580 => 581)</h4>
<pre class="diff"><span>
<span class="info">--- wp-testcase/test_includes_wp-styles.php        2012-03-18 04:35:44 UTC (rev 580)
+++ wp-testcase/test_includes_wp-styles.php        2012-03-20 17:52:11 UTC (rev 581)
</span><span class="lines">@@ -23,11 +23,11 @@
</span><span class="cx">                 wp_enqueue_style('no-deps-null-version', 'example.com', array(), null);
</span><span class="cx">                 wp_enqueue_style('no-deps-null-version-print-media', 'example.com', array(), null, 'print');
</span><span class="cx">                 $ver = get_bloginfo( 'version' );
</span><del>-                $expected = &quot;&lt;link rel='stylesheet' id='no-deps-no-version-css'  href='http://example.com?ver=$ver' type='text/css' media='all' /&gt;
-&lt;link rel='stylesheet' id='no-deps-version-css'  href='http://example.com?ver=1.2' type='text/css' media='all' /&gt;
-&lt;link rel='stylesheet' id='no-deps-null-version-css'  href='http://example.com' type='text/css' media='all' /&gt;
-&lt;link rel='stylesheet' id='no-deps-null-version-print-media-css'  href='http://example.com' type='text/css' media='print' /&gt;
-&quot;;
</del><ins>+                $expected  = &quot;&lt;link rel='stylesheet' id='no-deps-no-version-css'  href='http://example.com?ver=$ver' type='text/css' media='all' /&gt;\n&quot;;
+                $expected .= &quot;&lt;link rel='stylesheet' id='no-deps-version-css'  href='http://example.com?ver=1.2' type='text/css' media='all' /&gt;\n&quot;;
+                $expected .= &quot;&lt;link rel='stylesheet' id='no-deps-null-version-css'  href='http://example.com' type='text/css' media='all' /&gt;\n&quot;;
+                $expected .= &quot;&lt;link rel='stylesheet' id='no-deps-null-version-print-media-css'  href='http://example.com' type='text/css' media='print' /&gt;\n&quot;;
+                
</ins><span class="cx">                 $this-&gt;assertEquals($expected, get_echo('wp_print_styles'));
</span><span class="cx"> 
</span><span class="cx">                 // No styles left to print
</span></span></pre>
</div>
</div>

</body>
</html>