<!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>[521] wp-testcase: Set svn:eol-style on newer test cases.</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/521">521</a></dd>
<dt>Author</dt> <dd>westi</dd>
<dt>Date</dt> <dd>2012-02-07 11:09:16 +0000 (Tue, 07 Feb 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Set svn:eol-style on newer test cases.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#wptestcasetest_actionsphp">wp-testcase/test_actions.php</a></li>
</ul>

<h3>Property Changed</h3>
<ul>
<li><a href="#wptestcasetest_actionsphp">wp-testcase/test_actions.php</a></li>
<li><a href="#wptestcasetest_admin_includes_miscphp">wp-testcase/test_admin_includes_misc.php</a></li>
<li><a href="#wptestcasetest_includes_capabilitiesphp">wp-testcase/test_includes_capabilities.php</a></li>
<li><a href="#wptestcasetest_includes_classwpxmlrpcserverphp">wp-testcase/test_includes_class-wp-xmlrpc-server.php</a></li>
<li><a href="#wptestcasetest_msphp">wp-testcase/test_ms.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="wptestcasetest_actionsphp"></a>
<div class="modfile"><h4>Modified: wp-testcase/test_actions.php (520 => 521)</h4>
<pre class="diff"><span>
<span class="info">--- wp-testcase/test_actions.php        2012-02-07 11:00:37 UTC (rev 520)
+++ wp-testcase/test_actions.php        2012-02-07 11:09:16 UTC (rev 521)
</span><span class="lines">@@ -1,268 +1,268 @@
</span><del>-&lt;?php
</del><ins>+&lt;?php
</ins><span class="cx"> 
</span><del>-// test do_action and related functions
</del><ins>+// test do_action and related functions
</ins><span class="cx"> 
</span><del>-class WPTestActions extends WPTestCase {
</del><ins>+class WPTestActions extends WPTestCase {
</ins><span class="cx"> 
</span><del>-        function test_simple_action() {
-                $a = new MockAction();
-                $tag = rand_str();
</del><ins>+        function test_simple_action() {
+                $a = new MockAction();
+                $tag = rand_str();
</ins><span class="cx"> 
</span><del>-                add_action($tag, array(&amp;$a, 'action'));
-                do_action($tag);
</del><ins>+                add_action($tag, array(&amp;$a, 'action'));
+                do_action($tag);
</ins><span class="cx"> 
</span><del>-                // only one event occurred for the hook, with empty args
-                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
-                // only our hook was called
-                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
</del><ins>+                // only one event occurred for the hook, with empty args
+                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
+                // only our hook was called
+                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
</ins><span class="cx"> 
</span><del>-                $args = array_pop($a-&gt;get_args());
-                $this-&gt;assertEquals(array(''), $args);
-        }
</del><ins>+                $args = array_pop($a-&gt;get_args());
+                $this-&gt;assertEquals(array(''), $args);
+        }
</ins><span class="cx"> 
</span><del>-        function test_remove_action() {
-                $a = new MockAction();
-                $tag = rand_str();
</del><ins>+        function test_remove_action() {
+                $a = new MockAction();
+                $tag = rand_str();
</ins><span class="cx"> 
</span><del>-                add_action($tag, array(&amp;$a, 'action'));
-                do_action($tag);
</del><ins>+                add_action($tag, array(&amp;$a, 'action'));
+                do_action($tag);
</ins><span class="cx"> 
</span><del>-                // make sure our hook was called correctly
-                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
-                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
</del><ins>+                // make sure our hook was called correctly
+                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
+                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
</ins><span class="cx"> 
</span><del>-                // now remove the action, do it again, and make sure it's not called this time
-                remove_action($tag, array(&amp;$a, 'action'));
-                do_action($tag);
-                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
-                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
</del><ins>+                // now remove the action, do it again, and make sure it's not called this time
+                remove_action($tag, array(&amp;$a, 'action'));
+                do_action($tag);
+                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
+                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
</ins><span class="cx"> 
</span><del>-        }
</del><ins>+        }
</ins><span class="cx"> 
</span><del>-        function test_has_action() {
-                        $tag = rand_str();
-                        $func = rand_str();
</del><ins>+        function test_has_action() {
+                        $tag = rand_str();
+                        $func = rand_str();
</ins><span class="cx"> 
</span><del>-                        $this-&gt;assertFalse( has_action($tag, $func) );
-                        $this-&gt;assertFalse( has_action($tag) );
-                        add_action($tag, $func);
-                        $this-&gt;assertEquals( 10, has_action($tag, $func) );
-                        $this-&gt;assertTrue( has_action($tag) );
-                        remove_action($tag, $func);
-                        $this-&gt;assertFalse( has_action($tag, $func) );
-                        $this-&gt;assertFalse( has_action($tag) );
-        }
</del><ins>+                        $this-&gt;assertFalse( has_action($tag, $func) );
+                        $this-&gt;assertFalse( has_action($tag) );
+                        add_action($tag, $func);
+                        $this-&gt;assertEquals( 10, has_action($tag, $func) );
+                        $this-&gt;assertTrue( has_action($tag) );
+                        remove_action($tag, $func);
+                        $this-&gt;assertFalse( has_action($tag, $func) );
+                        $this-&gt;assertFalse( has_action($tag) );
+        }
</ins><span class="cx"> 
</span><del>-        // one tag with multiple actions
-        function test_multiple_actions() {
-                $a1 = new MockAction();
-                $a2 = new MockAction();
-                $tag = rand_str();
</del><ins>+        // one tag with multiple actions
+        function test_multiple_actions() {
+                $a1 = new MockAction();
+                $a2 = new MockAction();
+                $tag = rand_str();
</ins><span class="cx"> 
</span><del>-                // add both actions to the hook
-                add_action($tag, array(&amp;$a1, 'action'));
-                add_action($tag, array(&amp;$a2, 'action'));
</del><ins>+                // add both actions to the hook
+                add_action($tag, array(&amp;$a1, 'action'));
+                add_action($tag, array(&amp;$a2, 'action'));
</ins><span class="cx"> 
</span><del>-                do_action($tag);
</del><ins>+                do_action($tag);
</ins><span class="cx"> 
</span><del>-                // both actions called once each
-                $this-&gt;assertEquals(1, $a1-&gt;get_call_count());
-                $this-&gt;assertEquals(1, $a2-&gt;get_call_count());
-        }
</del><ins>+                // both actions called once each
+                $this-&gt;assertEquals(1, $a1-&gt;get_call_count());
+                $this-&gt;assertEquals(1, $a2-&gt;get_call_count());
+        }
</ins><span class="cx"> 
</span><del>-        function test_action_args_1() {
-                $a = new MockAction();
-                $tag = rand_str();
-                $val = rand_str();
</del><ins>+        function test_action_args_1() {
+                $a = new MockAction();
+                $tag = rand_str();
+                $val = rand_str();
</ins><span class="cx"> 
</span><del>-                add_action($tag, array(&amp;$a, 'action'));
-                // call the action with a single argument
-                do_action($tag, $val);
</del><ins>+                add_action($tag, array(&amp;$a, 'action'));
+                // call the action with a single argument
+                do_action($tag, $val);
</ins><span class="cx"> 
</span><del>-                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
-                $this-&gt;assertEquals(array($val), array_pop($a-&gt;get_args()));
-        }
</del><ins>+                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
+                $this-&gt;assertEquals(array($val), array_pop($a-&gt;get_args()));
+        }
</ins><span class="cx"> 
</span><del>-        function test_action_args_2() {
-                $a1 = new MockAction();
-                $a2 = new MockAction();
-                $tag = rand_str();
-                $val1 = rand_str();
-                $val2 = rand_str();
</del><ins>+        function test_action_args_2() {
+                $a1 = new MockAction();
+                $a2 = new MockAction();
+                $tag = rand_str();
+                $val1 = rand_str();
+                $val2 = rand_str();
</ins><span class="cx"> 
</span><del>-                // a1 accepts two arguments, a2 doesn't
-                add_action($tag, array(&amp;$a1, 'action'), 10, 2);
-                add_action($tag, array(&amp;$a2, 'action'));
-                // call the action with two arguments
-                do_action($tag, $val1, $val2);
</del><ins>+                // a1 accepts two arguments, a2 doesn't
+                add_action($tag, array(&amp;$a1, 'action'), 10, 2);
+                add_action($tag, array(&amp;$a2, 'action'));
+                // call the action with two arguments
+                do_action($tag, $val1, $val2);
</ins><span class="cx"> 
</span><del>-                // a1 should be called with both args
-                $this-&gt;assertEquals(1, $a1-&gt;get_call_count());
-                $this-&gt;assertEquals(array($val1, $val2), array_pop($a1-&gt;get_args()));
</del><ins>+                // a1 should be called with both args
+                $this-&gt;assertEquals(1, $a1-&gt;get_call_count());
+                $this-&gt;assertEquals(array($val1, $val2), array_pop($a1-&gt;get_args()));
</ins><span class="cx"> 
</span><del>-                // a2 should be called with one only
-                $this-&gt;assertEquals(1, $a2-&gt;get_call_count());
-                $this-&gt;assertEquals(array($val1), array_pop($a2-&gt;get_args()));
-        }
</del><ins>+                // a2 should be called with one only
+                $this-&gt;assertEquals(1, $a2-&gt;get_call_count());
+                $this-&gt;assertEquals(array($val1), array_pop($a2-&gt;get_args()));
+        }
</ins><span class="cx"> 
</span><del>-        function test_action_priority() {
-                $a = new MockAction();
-                $tag = rand_str();
</del><ins>+        function test_action_priority() {
+                $a = new MockAction();
+                $tag = rand_str();
</ins><span class="cx"> 
</span><del>-                add_action($tag, array(&amp;$a, 'action'), 10);
-                add_action($tag, array(&amp;$a, 'action2'), 9);
-                do_action($tag);
</del><ins>+                add_action($tag, array(&amp;$a, 'action'), 10);
+                add_action($tag, array(&amp;$a, 'action2'), 9);
+                do_action($tag);
</ins><span class="cx"> 
</span><del>-                // two events, one per action
-                $this-&gt;assertEquals(2, $a-&gt;get_call_count());
</del><ins>+                // two events, one per action
+                $this-&gt;assertEquals(2, $a-&gt;get_call_count());
</ins><span class="cx"> 
</span><del>-                $expected = array (
-                        // action2 is called first because it has priority 9
-                        array (
-                                'action' =&gt; 'action2',
-                                'tag' =&gt; $tag,
-                                'args' =&gt; array('')
-                        ),
-                        // action 1 is called second
-                        array (
-                                'action' =&gt; 'action',
-                                'tag' =&gt; $tag,
-                                'args' =&gt; array('')
-                        ),
-                );
</del><ins>+                $expected = array (
+                        // action2 is called first because it has priority 9
+                        array (
+                                'action' =&gt; 'action2',
+                                'tag' =&gt; $tag,
+                                'args' =&gt; array('')
+                        ),
+                        // action 1 is called second
+                        array (
+                                'action' =&gt; 'action',
+                                'tag' =&gt; $tag,
+                                'args' =&gt; array('')
+                        ),
+                );
</ins><span class="cx"> 
</span><del>-                $this-&gt;assertEquals($expected, $a-&gt;get_events());
-        }
</del><ins>+                $this-&gt;assertEquals($expected, $a-&gt;get_events());
+        }
</ins><span class="cx"> 
</span><del>-        function test_did_action() {
-                $tag1 = rand_str();
-                $tag2 = rand_str();
</del><ins>+        function test_did_action() {
+                $tag1 = rand_str();
+                $tag2 = rand_str();
</ins><span class="cx"> 
</span><del>-                // do action tag1 but not tag2
-                do_action($tag1);
-                $this-&gt;assertEquals(1, did_action($tag1));
-                $this-&gt;assertEquals(0, did_action($tag2));
</del><ins>+                // do action tag1 but not tag2
+                do_action($tag1);
+                $this-&gt;assertEquals(1, did_action($tag1));
+                $this-&gt;assertEquals(0, did_action($tag2));
</ins><span class="cx"> 
</span><del>-                // do action tag2 a random number of times
-                $count = rand(0, 10);
-                for ($i=0; $i&lt;$count; $i++)
-                        do_action($tag2);
</del><ins>+                // do action tag2 a random number of times
+                $count = rand(0, 10);
+                for ($i=0; $i&lt;$count; $i++)
+                        do_action($tag2);
</ins><span class="cx"> 
</span><del>-                // tag1's count hasn't changed, tag2 should be correct
-                $this-&gt;assertEquals(1, did_action($tag1));
-                $this-&gt;assertEquals($count, did_action($tag2));
</del><ins>+                // tag1's count hasn't changed, tag2 should be correct
+                $this-&gt;assertEquals(1, did_action($tag1));
+                $this-&gt;assertEquals($count, did_action($tag2));
</ins><span class="cx"> 
</span><del>-        }
</del><ins>+        }
</ins><span class="cx"> 
</span><del>-        function test_all_action() {
-                $a = new MockAction();
-                $tag1 = rand_str();
-                $tag2 = rand_str();
</del><ins>+        function test_all_action() {
+                $a = new MockAction();
+                $tag1 = rand_str();
+                $tag2 = rand_str();
</ins><span class="cx"> 
</span><del>-                // add an 'all' action
-                add_action('all', array(&amp;$a, 'action'));
-                $this-&gt;assertEquals(10, has_filter('all', array(&amp;$a, 'action')));
-                // do some actions
-                do_action($tag1);
-                do_action($tag2);
-                do_action($tag1);
-                do_action($tag1);
</del><ins>+                // add an 'all' action
+                add_action('all', array(&amp;$a, 'action'));
+                $this-&gt;assertEquals(10, has_filter('all', array(&amp;$a, 'action')));
+                // do some actions
+                do_action($tag1);
+                do_action($tag2);
+                do_action($tag1);
+                do_action($tag1);
</ins><span class="cx"> 
</span><del>-                // our action should have been called once for each tag
-                $this-&gt;assertEquals(4, $a-&gt;get_call_count());
-                // only our hook was called
-                $this-&gt;assertEquals(array($tag1, $tag2, $tag1, $tag1), $a-&gt;get_tags());
</del><ins>+                // our action should have been called once for each tag
+                $this-&gt;assertEquals(4, $a-&gt;get_call_count());
+                // only our hook was called
+                $this-&gt;assertEquals(array($tag1, $tag2, $tag1, $tag1), $a-&gt;get_tags());
</ins><span class="cx"> 
</span><del>-                remove_action('all', array(&amp;$a, 'action'));
-                $this-&gt;assertFalse(has_filter('all', array(&amp;$a, 'action')));
</del><ins>+                remove_action('all', array(&amp;$a, 'action'));
+                $this-&gt;assertFalse(has_filter('all', array(&amp;$a, 'action')));
</ins><span class="cx"> 
</span><del>-        }
</del><ins>+        }
</ins><span class="cx"> 
</span><del>-        function test_remove_all_action() {
-                $a = new MockAction();
-                $tag = rand_str();
</del><ins>+        function test_remove_all_action() {
+                $a = new MockAction();
+                $tag = rand_str();
</ins><span class="cx"> 
</span><del>-                add_action('all', array(&amp;$a, 'action'));
-                $this-&gt;assertEquals(10, has_filter('all', array(&amp;$a, 'action')));
-                do_action($tag);
</del><ins>+                add_action('all', array(&amp;$a, 'action'));
+                $this-&gt;assertEquals(10, has_filter('all', array(&amp;$a, 'action')));
+                do_action($tag);
</ins><span class="cx"> 
</span><del>-                // make sure our hook was called correctly
-                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
-                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
</del><ins>+                // make sure our hook was called correctly
+                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
+                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
</ins><span class="cx"> 
</span><del>-                // now remove the action, do it again, and make sure it's not called this time
-                remove_action('all', array(&amp;$a, 'action'));
-                $this-&gt;assertFalse(has_filter('all', array(&amp;$a, 'action')));
-                do_action($tag);
-                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
-                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
-        }
</del><ins>+                // now remove the action, do it again, and make sure it's not called this time
+                remove_action('all', array(&amp;$a, 'action'));
+                $this-&gt;assertFalse(has_filter('all', array(&amp;$a, 'action')));
+                do_action($tag);
+                $this-&gt;assertEquals(1, $a-&gt;get_call_count());
+                $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
+        }
</ins><span class="cx"> 
</span><del>-        function test_action_ref_array() {
-                $obj = new stdClass();
-                $a = new MockAction();
-                $tag = rand_str();
</del><ins>+        function test_action_ref_array() {
+                $obj = new stdClass();
+                $a = new MockAction();
+                $tag = rand_str();
</ins><span class="cx"> 
</span><del>-                add_action($tag, array(&amp;$a, 'action'));
</del><ins>+                add_action($tag, array(&amp;$a, 'action'));
</ins><span class="cx"> 
</span><del>-                do_action_ref_array($tag, array(&amp;$obj));
</del><ins>+                do_action_ref_array($tag, array(&amp;$obj));
</ins><span class="cx"> 
</span><del>-                $args = $a-&gt;get_args();
-                $this-&gt;assertSame($args[0][0], $obj);
-                // just in case we don't trust assertSame
-                $obj-&gt;foo = true;
-                $this-&gt;assertFalse( empty($args[0][0]-&gt;foo) );
-        }
</del><ins>+                $args = $a-&gt;get_args();
+                $this-&gt;assertSame($args[0][0], $obj);
+                // just in case we don't trust assertSame
+                $obj-&gt;foo = true;
+                $this-&gt;assertFalse( empty($args[0][0]-&gt;foo) );
+        }
</ins><span class="cx"> 
</span><del>-        function test_action_keyed_array() {
-                $this-&gt;knownWPBug(11241);
-                $a = new MockAction();
</del><ins>+        function test_action_keyed_array() {
+                $this-&gt;knownWPBug(11241);
+                $a = new MockAction();
</ins><span class="cx"> 
</span><del>-                $tag = rand_str();
</del><ins>+                $tag = rand_str();
</ins><span class="cx"> 
</span><del>-                add_action($tag, array(&amp;$a, 'action'));
</del><ins>+                add_action($tag, array(&amp;$a, 'action'));
</ins><span class="cx"> 
</span><del>-                $context = array( rand_str() =&gt; rand_str() );
-                do_action($tag, $context);
</del><ins>+                $context = array( rand_str() =&gt; rand_str() );
+                do_action($tag, $context);
</ins><span class="cx"> 
</span><del>-                $args = $a-&gt;get_args();
-                $this-&gt;assertSame($args[0][0], $context);
</del><ins>+                $args = $a-&gt;get_args();
+                $this-&gt;assertSame($args[0][0], $context);
</ins><span class="cx"> 
</span><del>-                $context2 = array( rand_str() =&gt; rand_str(), rand_str() =&gt; rand_str() );
-                do_action($tag, $context2);
</del><ins>+                $context2 = array( rand_str() =&gt; rand_str(), rand_str() =&gt; rand_str() );
+                do_action($tag, $context2);
</ins><span class="cx"> 
</span><del>-                $args = $a-&gt;get_args();
-                $this-&gt;assertSame($args[1][0], $context2);
</del><ins>+                $args = $a-&gt;get_args();
+                $this-&gt;assertSame($args[1][0], $context2);
</ins><span class="cx"> 
</span><del>-        }
</del><ins>+        }
</ins><span class="cx"> 
</span><del>-        function test_action_closure() {
-                $this-&gt;checkAtLeastPHPVersion('5.3');
-                $this-&gt;knownWPBug(10493);
</del><ins>+        function test_action_closure() {
+                $this-&gt;checkAtLeastPHPVersion('5.3');
+                $this-&gt;knownWPBug(10493);
</ins><span class="cx"> 
</span><del>-                $tag = rand_str();
-                $closure = function($a, $b) { $GLOBALS[$a] = $b;};
-                add_action($tag, $closure, 10, 2);
</del><ins>+                $tag = rand_str();
+                $closure = function($a, $b) { $GLOBALS[$a] = $b;};
+                add_action($tag, $closure, 10, 2);
</ins><span class="cx"> 
</span><del>-                $this-&gt;assertSame( 10, has_action($tag, $closure) );
</del><ins>+                $this-&gt;assertSame( 10, has_action($tag, $closure) );
</ins><span class="cx"> 
</span><del>-                $context = array( rand_str(), rand_str() );
-                do_action($tag, $context[0], $context[1]);
</del><ins>+                $context = array( rand_str(), rand_str() );
+                do_action($tag, $context[0], $context[1]);
</ins><span class="cx"> 
</span><del>-                $this-&gt;assertSame($GLOBALS[$context[0]], $context[1]);
</del><ins>+                $this-&gt;assertSame($GLOBALS[$context[0]], $context[1]);
</ins><span class="cx"> 
</span><del>-                $tag2 = rand_str();
-                $closure2 = function() { $GLOBALS['closure_no_args'] = true;};
-                add_action($tag2, $closure2);
</del><ins>+                $tag2 = rand_str();
+                $closure2 = function() { $GLOBALS['closure_no_args'] = true;};
+                add_action($tag2, $closure2);
</ins><span class="cx"> 
</span><del>-                $this-&gt;assertSame( 10, has_action($tag2, $closure2) );
</del><ins>+                $this-&gt;assertSame( 10, has_action($tag2, $closure2) );
</ins><span class="cx"> 
</span><del>-                do_action($tag2);
</del><ins>+                do_action($tag2);
</ins><span class="cx"> 
</span><del>-                $this-&gt;assertTrue($GLOBALS['closure_no_args']);
</del><ins>+                $this-&gt;assertTrue($GLOBALS['closure_no_args']);
</ins><span class="cx"> 
</span><del>-        }
</del><ins>+        }
</ins><span class="cx"> 
</span><del>-}
</del><ins>+}
</ins><span class="cx"> 
</span><del>-?&gt;
</del><ins>+?&gt;
</ins><span class="cx">Property changes on: wp-testcase/test_actions.php
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="wptestcasetest_admin_includes_miscphp"></a>
<div class="propset"><h4>Property changes: wp-testcase/test_admin_includes_misc.php</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="wptestcasetest_includes_capabilitiesphp"></a>
<div class="propset"><h4>Property changes: wp-testcase/test_includes_capabilities.php</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="wptestcasetest_includes_classwpxmlrpcserverphp"></a>
<div class="propset"><h4>Property changes: wp-testcase/test_includes_class-wp-xmlrpc-server.php</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="wptestcasetest_msphp"></a>
<div class="propset"><h4>Property changes: wp-testcase/test_ms.php</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
</div>

</body>
</html>