<!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>[58594] trunk/tests/phpunit/tests/interactivity-api: Tests: Use `assertSame()` in `WP_Interactivity_API` tests.</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/58594">58594</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/58594","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>2024-06-28 15:45:08 +0000 (Fri, 28 Jun 2024)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Tests: Use `assertSame()` in `WP_Interactivity_API` tests.

This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to <a href="https://core.trac.wordpress.org/changeset/57563">[57563]</a>, <a href="https://core.trac.wordpress.org/changeset/57649">[57649]</a>, <a href="https://core.trac.wordpress.org/changeset/57822">[57822]</a>, <a href="https://core.trac.wordpress.org/changeset/57826">[57826]</a>, <a href="https://core.trac.wordpress.org/changeset/57835">[57835]</a>, <a href="https://core.trac.wordpress.org/changeset/58159">[58159]</a>, <a href="https://core.trac.wordpress.org/changeset/58327">[58327]</a>.

See <a href="https://core.trac.wordpress.org/ticket/61530">#61530</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpclassphp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-class.php</a></li>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpcontextphp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-context.php</a></li>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpeachphp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-each.php</a></li>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpinteractivephp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-interactive.php</a></li>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIwprouterregionphp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-router-region.php</a></li>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpstylephp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-style.php</a></li>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIwptextphp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-text.php</a></li>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIphp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI.php</a></li>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIDirectivesProcessorphp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPIDirectivesProcessor.php</a></li>
<li><a href="#trunktestsphpunittestsinteractivityapiwpInteractivityAPIFunctionsphp">trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPIFunctions.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpclassphp"></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/interactivity-api/wpInteractivityAPI-wp-class.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-class.php       2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-class.php 2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -58,7 +58,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_sets_class_name() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div data-wp-class--some-class="myPlugin::state.true">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -76,7 +76,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                data-wp-class--other-class="myPlugin::state.true"
</span><span class="cx" style="display: block; padding: 0 10px">                        >Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-class other-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-class other-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -94,7 +94,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                data-wp-class--other-class="myPlugin::state.false"
</span><span class="cx" style="display: block; padding: 0 10px">                        >Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-class', $p->get_attribute( 'class' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '
</span><span class="cx" style="display: block; padding: 0 10px">                        <div
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -103,7 +103,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                data-wp-class--other-class="myPlugin::state.false"
</span><span class="cx" style="display: block; padding: 0 10px">                        >Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -116,7 +116,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_sets_class_name_when_class_attribute_exists() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div class="other-class" data-wp-class--some-class="myPlugin::state.true">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-class some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-class some-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -143,7 +143,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_doesnt_add_class_name_on_false() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div class="other-class" data-wp-class--some-class="myPlugin::state.false">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -157,7 +157,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_keeps_class_name_when_class_name_exists() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div class="some-class" data-wp-class--some-class="myPlugin::state.true">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -171,7 +171,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_keeps_class_name_when_class_name_exists_and_is_not_the_only_one() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div class="other-class some-class" data-wp-class--some-class="myPlugin::state.true">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-class some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-class some-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -199,7 +199,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_removes_class_name_when_class_name_exists_and_is_not_the_only_one() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div class="other-class some-class" data-wp-class--some-class="myPlugin::state.false">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -227,7 +227,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_doesnt_change_class_attribute_with_empty_directive_suffix() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div class="other-class" data-wp-class="myPlugin::state.true">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -242,7 +242,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_doesnt_change_class_attribute_with_empty_value() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div class="other-class" data-wp-class--some-class="">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -257,7 +257,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_doesnt_change_class_attribute_without_value() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div class="other-class" data-wp-class--some-class>Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -271,7 +271,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_class_works_with_multiple_directives() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div data-wp-class--some-class="myPlugin::state.true" data-wp-class--some-class="myPlugin::state.true">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-class', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -286,17 +286,17 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'text' => 'some text' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div data-wp-class--some-class="myPlugin::state.text">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-class', $p->get_attribute( 'class' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'array' => array( 1, 2 ) ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div data-wp-class--some-class="myPlugin::state.array">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-class', $p->get_attribute( 'class' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'number' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div data-wp-class--some-class="myPlugin::state.number">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-class', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-class', $p->get_attribute( 'class' ) );
</ins><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></span></pre></div>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpcontextphp"></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/interactivity-api/wpInteractivityAPI-wp-context.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-context.php     2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-context.php       2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -56,7 +56,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -78,7 +78,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -99,9 +99,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-2', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-2', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -121,7 +121,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-2', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-2', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -142,9 +142,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-2', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-2', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -165,9 +165,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-2', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-2', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -206,9 +206,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -247,9 +247,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -288,9 +288,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -307,7 +307,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -346,7 +346,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -368,7 +368,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -389,7 +389,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -416,11 +416,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNull( $p->get_attribute( 'id' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -445,7 +445,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -469,9 +469,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-2', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-2', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -494,7 +494,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-2', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-2', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -518,8 +518,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-2', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-2', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id-1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id-1', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpeachphp"></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/interactivity-api/wpInteractivityAPI-wp-each.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-each.php        2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-each.php  2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,7 +42,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                <span data-wp-text="myPlugin::context.item"></span>
</span><span class="cx" style="display: block; padding: 0 10px">                        </div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $original, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $original, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -68,7 +68,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                <span data-wp-text="myPlugin::context.item"></span>
</span><span class="cx" style="display: block; padding: 0 10px">                        </template>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $original, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $original, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -92,7 +92,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.item">2</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -116,7 +116,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '</template>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -145,7 +145,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                '<div id="after-wp-each" data-wp-bind--id="myPlugin::context.after" data-wp-text="myPlugin::context.item">New text</div>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -173,7 +173,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -201,7 +201,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                '<div id="after-wp-each" data-wp-bind--id="state.after">Text</div>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -229,7 +229,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.item">2</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -257,7 +257,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<img data-wp-each-child id="2" data-wp-bind--id="myPlugin::context.item">' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -286,7 +286,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.item">2</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -318,7 +318,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '</div>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -361,7 +361,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.item.name">two</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -385,7 +385,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.myitem">2</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -410,7 +410,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.myItem">2</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -426,7 +426,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'id: <span data-wp-text="myPlugin::context.item"></span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '</template>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $original, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $original, $new );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $original = '' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<template data-wp-each="myPlugin::state.list">' .
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -433,7 +433,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                '<span data-wp-text="myPlugin::context.item"></span>!' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '</template>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $original, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $original, $new );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // But it should work fine with spaces and linebreaks.
</span><span class="cx" style="display: block; padding: 0 10px">                $original = '
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -444,9 +444,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $p        = new WP_HTML_Tag_Processor( $new );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'test' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '1', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '1', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '2', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '2', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -487,7 +487,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.item2">4</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -533,7 +533,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.item2">4</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -571,7 +571,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.number">4</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -590,7 +590,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '</template>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $original, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $original, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -614,7 +614,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '</template>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $original, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $original, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -639,23 +639,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'list' => null ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $new = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'list' => 'Text' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $new = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'list' => 100 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $new = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'list' => false ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $new = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'list' => true ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $new = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -682,6 +682,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '<span data-wp-each-child data-wp-text="myPlugin::context.item">2</span>' .
</span><span class="cx" style="display: block; padding: 0 10px">                        '<div id="after-wp-each" data-wp-bind--id="myPlugin::state.after">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new      = $this->interactivity->process_directives( $original );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $new );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $new );
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpinteractivephp"></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/interactivity-api/wpInteractivityAPI-wp-interactive.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-interactive.php 2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-interactive.php   2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -58,7 +58,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -76,7 +76,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -97,9 +97,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -121,9 +121,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -144,9 +144,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -167,9 +167,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                </div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -190,9 +190,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -209,7 +209,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -227,7 +227,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -248,9 +248,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '
</span><span class="cx" style="display: block; padding: 0 10px">                                        <div data-wp-interactive=\'{ "namespace": "myPlugin" }\'>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -261,8 +261,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        </div>
</span><span class="cx" style="display: block; padding: 0 10px">                        ';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'other-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'other-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'test' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIwprouterregionphp"></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/interactivity-api/wpInteractivityAPI-wp-router-region.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-router-region.php       2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-router-region.php 2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -88,9 +88,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div>Nothing here</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><span class="cx" style="display: block; padding: 0 10px">                $footer   = $this->render_wp_footer();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $html, $new_html );
-               $this->assertEquals( '', $footer );
-               $this->assertEquals( '', get_echo( 'wp_print_styles' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $html, $new_html );
+               $this->assertSame( '', $footer );
+               $this->assertSame( '', get_echo( 'wp_print_styles' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -108,7 +108,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        <div data-wp-router-region="region B">Another interactive region</div>
</span><span class="cx" style="display: block; padding: 0 10px">                ';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $html, $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $html, $new_html );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Check that the style is loaded, but only once.
</span><span class="cx" style="display: block; padding: 0 10px">                $styles = get_echo( 'wp_print_styles' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -115,7 +115,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $query  = array( 'tag_name' => 'style' );
</span><span class="cx" style="display: block; padding: 0 10px">                $p      = new WP_HTML_Tag_Processor( $styles );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $p->next_tag( $query ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'wp-interactivity-router-animations-inline-css', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'wp-interactivity-router-animations-inline-css', $p->get_attribute( 'id' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertStringContainsString( '.wp-interactivity-router-loading-bar', $styles );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $p->next_tag( $query ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIwpstylephp"></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/interactivity-api/wpInteractivityAPI-wp-style.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-style.php       2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-style.php 2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -61,47 +61,47 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_merge_style_property_sets_properties() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Adds property on empty style attribute.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( '', 'color', 'green' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:green;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:green;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Changes style property when there is an existing property.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;', 'color', 'green' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:green;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:green;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Adds a new property when the existing one does not match.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;', 'background', 'blue' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;background:blue;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;background:blue;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Handles multiple existing properties.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;margin:5px;', 'color', 'green' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'margin:5px;color:green;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'margin:5px;color:green;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Adds a new property when multiple existing properties do not match.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;margin:5px;', 'padding', '10px' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;margin:5px;padding:10px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;margin:5px;padding:10px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Removes whitespaces in all properties.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( ' color : red; margin : 5px; ', 'padding', ' 10px ' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;margin:5px;padding:10px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;margin:5px;padding:10px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Updates a property when it's not the first one in the value.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;margin:5px;', 'margin', '15px' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;margin:15px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;margin:15px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Adds missing trailing semicolon.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;margin:5px', 'padding', '10px' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;margin:5px;padding:10px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;margin:5px;padding:10px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Doesn't add double semicolons.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;margin:5px;', 'padding', '10px;' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;margin:5px;padding:10px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;margin:5px;padding:10px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Handles empty properties in the input.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;;margin:5px;;', 'padding', '10px' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;margin:5px;padding:10px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;margin:5px;padding:10px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Moves the modified property to the end.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'border-style: dashed; border: 3px solid red;', 'border-style', 'inset' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'border:3px solid red;border-style:inset;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'border:3px solid red;border-style:inset;', $result );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -115,35 +115,35 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_merge_style_property_with_falsy_values() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Removes a property with an empty string.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;margin:5px;', 'color', '' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'margin:5px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'margin:5px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Removes a property with null.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;margin:5px;', 'color', null );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'margin:5px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'margin:5px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Removes a property with false.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;margin:5px;', 'color', false );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'margin:5px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'margin:5px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Removes a property with 0.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;margin:5px;', 'color', 0 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'margin:5px;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'margin:5px;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // It doesn't add a new property with an empty string.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;', 'padding', '' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // It doesn't add a new property with null.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;', 'padding', null );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // It doesn't add a new property with false.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;', 'padding', false );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // It doesn't add a new property with 0.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->merge_style_property( 'color:red;', 'padding', 0 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:red;', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:red;', $result );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -170,7 +170,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_sets_style_attribute() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div data-wp-style--color="myPlugin::state.green">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:green;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:green;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -188,7 +188,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                data-wp-style--background="myPlugin::state.green"
</span><span class="cx" style="display: block; padding: 0 10px">                        >Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:green;background:green;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:green;background:green;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -206,7 +206,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                data-wp-style--background="myPlugin::state.false"
</span><span class="cx" style="display: block; padding: 0 10px">                        >Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:green;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:green;', $p->get_attribute( 'style' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '
</span><span class="cx" style="display: block; padding: 0 10px">                        <div
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -215,7 +215,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                data-wp-style--background="myPlugin::state.false"
</span><span class="cx" style="display: block; padding: 0 10px">                        >Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:green;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:green;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -229,7 +229,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_sets_style_property_when_style_attribute_exists() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div style="padding:10px;" data-wp-style--color="myPlugin::state.green">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'padding:10px;color:green;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'padding:10px;color:green;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -243,7 +243,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_overwrites_style_property_when_style_property_exists() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div style="color:red;" data-wp-style--color="myPlugin::state.green">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:green;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:green;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -271,7 +271,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_doesnt_add_style_property_on_false() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div style="padding:10px;" data-wp-style--color="myPlugin::state.false">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'padding:10px;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'padding:10px;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -285,7 +285,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_keeps_style_property_when_style_property_exists() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div style="color:green;" data-wp-style--color="myPlugin::state.green">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:green;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:green;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -299,7 +299,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_keeps_style_property_when_style_property_exists_and_is_not_the_only_one() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div style="padding:10px;color:green;" data-wp-style--color="myPlugin::state.green">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'padding:10px;color:green;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'padding:10px;color:green;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -327,7 +327,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_removes_style_property_when_style_property_exists_and_is_not_the_only_one() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div style="padding:10px;color:green;" data-wp-style--color="myPlugin::state.false">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'padding:10px;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'padding:10px;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -355,7 +355,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_doesnt_change_style_attribute_with_empty_directive_suffix() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div style="padding:10px;" data-wp-style="myPlugin::state.green">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'padding:10px;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'padding:10px;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -370,7 +370,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_doesnt_change_style_attribute_with_empty_value() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div style="padding:10px" data-wp-style--color="">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'padding:10px;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'padding:10px;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -385,7 +385,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_doesnt_change_style_attribute_without_value() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div style="padding: 10px;" data-wp-style--color>Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'padding:10px;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'padding:10px;', $p->get_attribute( 'style' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -399,7 +399,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_style_works_with_multiple_directives() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html    = '<div data-wp-style--color="myPlugin::state.green" data-wp-style--color="myPlugin::state.green">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                list($p) = $this->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'color:green;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'color:green;', $p->get_attribute( 'style' ) );
</ins><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></span></pre></div>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIwptextphp"></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/interactivity-api/wpInteractivityAPI-wp-text.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-text.php        2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI-wp-text.php  2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -39,7 +39,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_text_sets_inner_content() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.text">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.text">Updated</div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.text">Updated</div>', $new_html );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -53,7 +53,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'number' => 100 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.number">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.number">100</div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.number">100</div>', $new_html );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -77,23 +77,23 @@
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.true">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.true"></div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.true"></div>', $new_html );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.false">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.false"></div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.false"></div>', $new_html );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.null">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.null"></div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.null"></div>', $new_html );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.array">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.array"></div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.array"></div>', $new_html );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.func">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.func"></div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.func"></div>', $new_html );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -107,7 +107,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_text_sets_inner_content_with_nested_tags() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.text"><div><div>Text</div><div>Another text</div></div></div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.text">Updated</div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.text">Updated</div>', $new_html );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -121,7 +121,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_text_sets_inner_content_even_with_unbalanced_but_different_tags_inside_content() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.text"><span>Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.text">Updated</div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.text">Updated</div>', $new_html );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -137,7 +137,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_text_fails_with_unbalanced_and_same_tags_inside_content() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.text">Text<div></div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.text">Text<div></div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.text">Text<div></div>', $new_html );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -152,6 +152,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'text' => '<span>Updated</span>' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $html     = '<div data-wp-text="myPlugin::state.text">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $new_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<div data-wp-text="myPlugin::state.text">&lt;span&gt;Updated&lt;/span&gt;</div>', $new_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<div data-wp-text="myPlugin::state.text">&lt;span&gt;Updated&lt;/span&gt;</div>', $new_html );
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIphp"></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/interactivity-api/wpInteractivityAPI.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI.php        2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPI.php  2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -69,8 +69,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers ::config
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_state_and_config_should_be_empty() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array(), $this->interactivity->state( 'myPlugin' ) );
-               $this->assertEquals( array(), $this->interactivity->config( 'myPlugin' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array(), $this->interactivity->state( 'myPlugin' ) );
+               $this->assertSame( array(), $this->interactivity->config( 'myPlugin' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -89,9 +89,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'nested' => array( 'c' => 3 ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->interactivity->state( 'myPlugin', $state );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $state, $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $state, $result );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $result = $this->interactivity->config( 'myPlugin', $state );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $state, $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $state, $result );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -106,7 +106,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'a' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'b' => 2 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'otherPlugin', array( 'c' => 3 ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'a' => 1,
</span><span class="cx" style="display: block; padding: 0 10px">                                'b' => 2,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -113,7 +113,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->state( 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'c' => 3 ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->state( 'otherPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -121,7 +121,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->config( 'myPlugin', array( 'a' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->config( 'myPlugin', array( 'b' => 2 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->config( 'otherPlugin', array( 'c' => 3 ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'a' => 1,
</span><span class="cx" style="display: block; padding: 0 10px">                                'b' => 2,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -128,7 +128,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->config( 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'c' => 3 ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->config( 'otherPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );  }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -145,7 +145,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_state_and_config_existing_props_can_be_overwritten() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'a' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'a' => 2 ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'a' => 2 ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->state( 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -152,7 +152,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->config( 'myPlugin', array( 'a' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->config( 'myPlugin', array( 'a' => 2 ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'a' => 2 ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->config( 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -170,7 +170,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_state_and_config_existing_indexed_arrays_are_replaced() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'a' => array( 1, 2 ) ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'a' => array( 3, 4 ) ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'a' => array( 3, 4 ) ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->state( 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -177,7 +177,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->config( 'myPlugin', array( 'a' => array( 1, 2 ) ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->config( 'myPlugin', array( 'a' => array( 3, 4 ) ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'a' => array( 3, 4 ) ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->config( 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -218,10 +218,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'otherPlugin' => array( 'b' => 2 ),
</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">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                'config' => $data,
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'state'  => $data,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'config' => $data,
</del><span class="cx" style="display: block; padding: 0 10px">                         ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $result
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -251,7 +251,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_config_not_printed_when_empty() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'a' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->print_client_interactivity_data();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'state' => array( 'myPlugin' => array( 'a' => 1 ) ) ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'state' => array( 'myPlugin' => array( 'a' => 1 ) ) ), $result );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -265,7 +265,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_state_not_printed_when_empty() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->config( 'myPlugin', array( 'a' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->print_client_interactivity_data();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'config' => array( 'myPlugin' => array( 'a' => 1 ) ) ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'config' => array( 'myPlugin' => array( 'a' => 1 ) ) ), $result );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -286,7 +286,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> SCRIPT_TAG;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertSame( $expected, $printed_script );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSameIgnoreEOL( $expected, $printed_script );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -319,7 +319,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> SCRIPT_TAG;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertSame( $expected, $printed_script );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSameIgnoreEOL( $expected, $printed_script );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -340,7 +340,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> SCRIPT_TAG;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertSame( $expected, $printed_script );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSameIgnoreEOL( $expected, $printed_script );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -373,7 +373,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> SCRIPT_TAG;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertSame( $expected, $printed_script );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSameIgnoreEOL( $expected, $printed_script );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -410,7 +410,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $expected = <<<"JSON"
</span><span class="cx" style="display: block; padding: 0 10px"> {"config":{"myPlugin":{"chars":"&\\u003C\\u003E/"}},"state":{"myPlugin":{"ampersand":"&","less-than sign":"\\u003C","greater-than sign":"\\u003E","solidus":"/","line separator":"\u{2028}","paragraph separator":"\u{2029}","flag of england":"\u{1F3F4}\u{E0067}\u{E0062}\u{E0065}\u{E006E}\u{E0067}\u{E007F}","malicious script closer":"\\u003C/script\\u003E","entity-encoded malicious script closer":"&lt;/script&gt;"}}}
</span><span class="cx" style="display: block; padding: 0 10px"> JSON;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $interactivity_data_string[1] );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $interactivity_data_string[1] );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -450,7 +450,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $expected = <<<"JSON"
</span><span class="cx" style="display: block; padding: 0 10px"> {"config":{"myPlugin":{"chars":"&\\u003C\\u003E/"}},"state":{"myPlugin":{"ampersand":"&","less-than sign":"\\u003C","greater-than sign":"\\u003E","solidus":"/","line separator":"\\u2028","paragraph separator":"\\u2029","flag of england":"\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40\\udc65\\udb40\\udc6e\\udb40\\udc67\\udb40\\udc7f","malicious script closer":"\\u003C/script\\u003E","entity-encoded malicious script closer":"&lt;/script&gt;"}}}
</span><span class="cx" style="display: block; padding: 0 10px"> JSON;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $expected, $interactivity_data_string[1] );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $expected, $interactivity_data_string[1] );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -467,7 +467,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'a' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'otherPlugin', array( 'b' => 2 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'a' => 1 ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->state()
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -488,7 +488,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'a' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'otherPlugin', array( 'b' => 2 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->state( null, array( 'newProp' => 'value' ) )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -508,7 +508,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'myPlugin', array( 'a' => 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->interactivity->state( 'otherPlugin', array( 'b' => 2 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->state( '' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -524,7 +524,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @expectedIncorrectUsage WP_Interactivity_API::state
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_state_without_namespace_outside_directive_processing() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->state()
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -550,11 +550,11 @@
</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">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'a' => 1 ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->get_context( 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'b' => 2 ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->get_context( 'otherPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -580,7 +580,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"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array( 'a' => 1 ),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->get_context()
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -598,7 +598,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->set_internal_namespace_stack( 'myPlugin' );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->set_internal_context_stack();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->get_context( 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -623,7 +623,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"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->get_context( 'otherPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -648,7 +648,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"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(),
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->interactivity->get_context( '' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -666,7 +666,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_context_outside_of_directive_processing() {
</span><span class="cx" style="display: block; padding: 0 10px">                $context = $this->interactivity->get_context();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array(), $context );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array(), $context );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -681,55 +681,55 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $extract_directive_value->setAccessible( true );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'state.foo', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', 'state.foo' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', 'state.foo' ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'otherPlugin::state.foo', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'otherPlugin', 'state.foo' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'otherPlugin', 'state.foo' ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, '{ "isOpen": false }', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', array( 'isOpen' => false ) ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', array( 'isOpen' => false ) ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'otherPlugin::{ "isOpen": false }', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'otherPlugin', array( 'isOpen' => false ) ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'otherPlugin', array( 'isOpen' => false ) ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'true', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', true ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', true ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'false', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', false ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', false ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'null', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', null ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', null ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, '100', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', 100 ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', 100 ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, '1.2', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', 1.2 ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', 1.2 ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, '1.2.3', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', '1.2.3' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', '1.2.3' ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'otherPlugin::true', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'otherPlugin', true ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'otherPlugin', true ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'otherPlugin::false', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'otherPlugin', false ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'otherPlugin', false ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'otherPlugin::null', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'otherPlugin', null ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'otherPlugin', null ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'otherPlugin::100', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'otherPlugin', 100 ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'otherPlugin', 100 ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'otherPlugin::1.2', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'otherPlugin', 1.2 ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'otherPlugin', 1.2 ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'otherPlugin::1.2.3', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'otherPlugin', '1.2.3' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'otherPlugin', '1.2.3' ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'otherPlugin::[{"o":4}, null, 3e6]', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'otherPlugin', array( array( 'o' => 4 ), null, 3000000.0 ) ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'otherPlugin', array( array( 'o' => 4 ), null, 3000000.0 ) ), $result );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -744,26 +744,26 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $extract_directive_value->setAccessible( true );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, '', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', null ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', null ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // This is a boolean attribute.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, true, 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', null ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', null ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, false, 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', null ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', null ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, null, 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', null ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', null ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // A string ending in `::` without any extra characters is not considered a
</span><span class="cx" style="display: block; padding: 0 10px">                // namespace.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'myPlugin::', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', 'myPlugin::' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', 'myPlugin::' ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // A namespace with invalid characters is not considered a valid namespace.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, '$myPlugin::state.foo', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', '$myPlugin::state.foo' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', '$myPlugin::state.foo' ), $result );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -779,11 +779,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Invalid JSON due to missing quotes. Returns the original value.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, '{ isOpen: false }', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', '{ isOpen: false }' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', '{ isOpen: false }' ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Null string. Returns null.
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_directive_value->invoke( $this->interactivity, 'null', 'myPlugin' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'myPlugin', null ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'myPlugin', null ), $result );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -799,13 +799,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $extract_prefix_and_suffix->setAccessible( true );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_prefix_and_suffix->invoke( $this->interactivity, 'data-wp-interactive' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'data-wp-interactive' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'data-wp-interactive' ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_prefix_and_suffix->invoke( $this->interactivity, 'data-wp-bind--src' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'data-wp-bind', 'src' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'data-wp-bind', 'src' ), $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $extract_prefix_and_suffix->invoke( $this->interactivity, 'data-wp-foo--and--bar' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( array( 'data-wp-foo', 'and--bar' ), $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array( 'data-wp-foo', 'and--bar' ), $result );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -819,11 +819,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_process_directives_do_nothing_without_directives() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html           = '<div>Inner content here</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $processed_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $html, $processed_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $html, $processed_html );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $html           = '<div><span>Content</span><strong>More Content</strong></div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $processed_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $html, $processed_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $html, $processed_html );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -840,7 +840,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $processed_html = $this->interactivity->process_directives( $html );
</span><span class="cx" style="display: block; padding: 0 10px">                $p              = new WP_HTML_Tag_Processor( $processed_html );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -853,7 +853,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_process_directives_doesnt_fail_with_unknown_directives() {
</span><span class="cx" style="display: block; padding: 0 10px">                $html           = '<div data-wp-unknown="">Text</div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $processed_html = $this->interactivity->process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $html, $processed_html );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( $html, $processed_html );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -876,9 +876,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $processed_html = $this->interactivity->process_directives( $html );
</span><span class="cx" style="display: block; padding: 0 10px">                $p              = new WP_HTML_Tag_Processor( $processed_html );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
-               $this->assertEquals( 'some-class', $p->get_attribute( 'class' ) );
-               $this->assertEquals( 'display:none;', $p->get_attribute( 'style' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
+               $this->assertSame( 'some-class', $p->get_attribute( 'class' ) );
+               $this->assertSame( 'display:none;', $p->get_attribute( 'style' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertStringContainsString( 'Updated', $p->get_updated_html() );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertStringNotContainsString( 'Text', $p->get_updated_html() );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -952,7 +952,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $processed_html = $this->interactivity->process_directives( $html );
</span><span class="cx" style="display: block; padding: 0 10px">                $p              = new WP_HTML_Tag_Processor( $processed_html );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( 'div' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1017,7 +1017,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( 'math' );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNull( $p->get_attribute( 'id' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( 'div' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'some-id', $p->get_attribute( 'id' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'some-id', $p->get_attribute( 'id' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1121,16 +1121,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->set_internal_namespace_stack( 'myPlugin' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->evaluate( 'state.key' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'myPlugin-state', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'myPlugin-state', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->evaluate( 'context.key' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'myPlugin-context', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'myPlugin-context', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->evaluate( 'otherPlugin::state.key' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'otherPlugin-state', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'otherPlugin-state', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->evaluate( 'otherPlugin::context.key' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'otherPlugin-context', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'otherPlugin-context', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->evaluate( 'state.obj.prop' );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 'object property', $result );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1241,16 +1241,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->set_internal_namespace_stack( 'myPlugin' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->evaluate( 'state.nested.key' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'myPlugin-state-nested', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'myPlugin-state-nested', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->evaluate( 'context.nested.key' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'myPlugin-context-nested', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'myPlugin-context-nested', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->evaluate( 'otherPlugin::state.nested.key' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'otherPlugin-state-nested', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'otherPlugin-state-nested', $result );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->evaluate( 'otherPlugin::context.nested.key' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'otherPlugin-context-nested', $result );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'otherPlugin-context-nested', $result );
</ins><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></span></pre></div>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIDirectivesProcessorphp"></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/interactivity-api/wpInteractivityAPIDirectivesProcessor.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPIDirectivesProcessor.php     2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPIDirectivesProcessor.php       2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -24,14 +24,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $content = '<template>Text</template>';
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'Text', $p->get_content_between_balanced_template_tags() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'Text', $p->get_content_between_balanced_template_tags() );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $content = '<template>Text</template><template>More text</template>';
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'Text', $p->get_content_between_balanced_template_tags() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'Text', $p->get_content_between_balanced_template_tags() );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'More text', $p->get_content_between_balanced_template_tags() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'More text', $p->get_content_between_balanced_template_tags() );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -46,7 +46,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $content = '<template></template>';
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '', $p->get_content_between_balanced_template_tags() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '', $p->get_content_between_balanced_template_tags() );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -81,12 +81,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $content = '<template><span>Content</span><strong>More Content</strong></template>';
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<span>Content</span><strong>More Content</strong>', $p->get_content_between_balanced_template_tags() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<span>Content</span><strong>More Content</strong>', $p->get_content_between_balanced_template_tags() );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $content = '<template><template>Content</template><img src="example.jpg"></template>';
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '<template>Content</template><img src="example.jpg">', $p->get_content_between_balanced_template_tags() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '<template>Content</template><img src="example.jpg">', $p->get_content_between_balanced_template_tags() );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -131,7 +131,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $content = '<template>Missing opening span</span></template>';
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'Missing opening span</span>', $p->get_content_between_balanced_template_tags() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'Missing opening span</span>', $p->get_content_between_balanced_template_tags() );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -163,10 +163,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><span class="cx" style="display: block; padding: 0 10px">                $p->get_content_between_balanced_template_tags();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'TEMPLATE', $p->get_tag() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'TEMPLATE', $p->get_tag() );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertTrue( $p->is_tag_closer() );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'DIV', $p->get_tag() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'DIV', $p->get_tag() );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -479,13 +479,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $result );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $content_1 . $content_2, $p );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'content-2', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'content-2', $p->get_attribute( 'class' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $p->append_content_after_template_tag_closer( $content_3 );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $result );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $content_1 . $content_2 . $content_3, $p );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'content-3', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'content-3', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -509,7 +509,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $result );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $content_1 . $content_2 . $content_3, $p );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'content-3', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'content-3', $p->get_attribute( 'class' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $p = new WP_Interactivity_API_Directives_Processor( $content_1 . $content_3 );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -518,7 +518,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $result );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $content_1 . $content_4 . $content_3, $p );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'content-4', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'content-4', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -558,16 +558,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $result );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $content_1 . $content_2, $p );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'content-2', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'content-2', $p->get_attribute( 'class' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 // Rewinds to the first template.
</span><span class="cx" style="display: block; padding: 0 10px">                $p->seek( 'first template' );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->release_bookmark( 'first template' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'content-1', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'content-1', $p->get_attribute( 'class' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $p->append_content_after_template_tag_closer( $content_3 );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $content_1 . $content_3 . $content_2, $p );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'content-3', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'content-3', $p->get_attribute( 'class' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -615,9 +615,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $result );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $content_1 . $content_2, $p );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'content-2-template-1', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'content-2-template-1', $p->get_attribute( 'class' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'content-2-template-2', $p->get_attribute( 'class' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'content-2-template-2', $p->get_attribute( 'class' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'tag_closers' => 'visit' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $p->append_content_after_template_tag_closer( $content_3 );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $result );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -640,7 +640,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $p->append_content_after_template_tag_closer( '' );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $result );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $content, $p );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'TEMPLATE', $p->get_tag() ); // It didn't move.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'TEMPLATE', $p->get_tag() ); // It didn't move.
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertTrue( $p->is_tag_closer() ); // It didn't move.
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -694,7 +694,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $p->next_balanced_tag_closer_tag() );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'DIV', $p->get_tag() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'DIV', $p->get_tag() );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertTrue( $p->is_tag_closer() );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -731,7 +731,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $p->next_balanced_tag_closer_tag() );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'DIV', $p->get_tag() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'DIV', $p->get_tag() );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertTrue( $p->is_tag_closer() );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $content = '<div><div>Nested content</div></div>';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -738,7 +738,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $p       = new WP_Interactivity_API_Directives_Processor( $content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $p->next_balanced_tag_closer_tag() );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'DIV', $p->get_tag() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'DIV', $p->get_tag() );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertTrue( $p->is_tag_closer() );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $p->next_tag() ); // No more content.
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -793,7 +793,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag();
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $p->skip_to_tag_closer() );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $p->is_tag_closer() );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'DIV', $p->get_tag() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'DIV', $p->get_tag() );
</ins><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></span></pre></div>
<a id="trunktestsphpunittestsinteractivityapiwpInteractivityAPIFunctionsphp"></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/interactivity-api/wpInteractivityAPIFunctions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPIFunctions.php       2024-06-28 13:52:31 UTC (rev 58593)
+++ trunk/tests/phpunit/tests/interactivity-api/wpInteractivityAPIFunctions.php 2024-06-28 15:45:08 UTC (rev 58594)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -76,7 +76,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $rendered_blocks = do_blocks( $post_content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p               = new WP_HTML_Tag_Processor( $rendered_blocks );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'interactive/block-1' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '1', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '1', $p->get_attribute( 'value' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -97,13 +97,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $rendered_blocks = do_blocks( $post_content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p               = new WP_HTML_Tag_Processor( $rendered_blocks );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'interactive/block-1' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '1', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '1', $p->get_attribute( 'value' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'interactive/block-2' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '2', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '2', $p->get_attribute( 'value' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'non-interactive/block-3' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNull( $p->get_attribute( 'value' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'interactive/block-4' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '4', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '4', $p->get_attribute( 'value' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -122,7 +122,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $rendered_blocks = do_blocks( $post_content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p               = new WP_HTML_Tag_Processor( $rendered_blocks );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'interactive/block-2' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '2', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '2', $p->get_attribute( 'value' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -143,9 +143,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $rendered_blocks = do_blocks( $post_content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p               = new WP_HTML_Tag_Processor( $rendered_blocks );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'interactive/block-2' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '2', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '2', $p->get_attribute( 'value' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'interactive/block-3' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '3', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '3', $p->get_attribute( 'value' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -168,9 +168,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $rendered_blocks = do_blocks( $post_content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p               = new WP_HTML_Tag_Processor( $rendered_blocks );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'interactive/block-2' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '2', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '2', $p->get_attribute( 'value' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'interactive/block-4' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '4', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '4', $p->get_attribute( 'value' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -190,7 +190,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $rendered_blocks = do_blocks( $post_content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p               = new WP_HTML_Tag_Processor( $rendered_blocks );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'interactive/block-1' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '1', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '1', $p->get_attribute( 'value' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'non-interactive/block-2' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNull( $p->get_attribute( 'value' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -212,9 +212,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $rendered_blocks = do_blocks( $post_content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p               = new WP_HTML_Tag_Processor( $rendered_blocks );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'interactive/block-1' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '1', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '1', $p->get_attribute( 'value' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'non-interactive/block-2' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '1', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '1', $p->get_attribute( 'value' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -238,13 +238,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $rendered_blocks = do_blocks( $post_content );
</span><span class="cx" style="display: block; padding: 0 10px">                $p               = new WP_HTML_Tag_Processor( $rendered_blocks );
</span><span class="cx" style="display: block; padding: 0 10px">                $p->next_tag( array( 'class_name' => 'interactive/block-1' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '1', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '1', $p->get_attribute( 'value' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'interactive/block-2' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '2', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '2', $p->get_attribute( 'value' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'non-interactive/block-3' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '2', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '2', $p->get_attribute( 'value' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $p->next_tag( array( 'class_name' => 'non-interactive/block-4' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '1', $p->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '1', $p->get_attribute( 'value' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -288,7 +288,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $html                               = '<div data-wp-test></div>';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->data_wp_test_processor_count = 0;
</span><span class="cx" style="display: block; padding: 0 10px">                wp_interactivity_process_directives( $html );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 1, $this->data_wp_test_processor_count );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 1, $this->data_wp_test_processor_count );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                register_block_type(
</span><span class="cx" style="display: block; padding: 0 10px">                        'test/custom-directive-block',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -309,7 +309,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->data_wp_test_processor_count = 0;
</span><span class="cx" style="display: block; padding: 0 10px">                do_blocks( $post_content );
</span><span class="cx" style="display: block; padding: 0 10px">                unregister_block_type( 'test/custom-directive-block' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 2, $this->data_wp_test_processor_count );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 2, $this->data_wp_test_processor_count );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $directive_processors->setValue( null, $old_directive_processors );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -343,7 +343,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $processor->next_tag( array( 'data-wp-interactive' => 'nameSpace' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                remove_filter( 'render_block_data', 'test_render_block_data' );
</span><span class="cx" style="display: block; padding: 0 10px">                unregister_block_type( 'test/custom-directive-block' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'test', $processor->get_attribute( 'value' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'test', $processor->get_attribute( 'value' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -355,8 +355,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers wp_interactivity_data_wp_context
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_interactivity_data_wp_context_with_different_arrays() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'data-wp-context=\'{}\'', wp_interactivity_data_wp_context( array() ) );
-               $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'data-wp-context=\'{}\'', wp_interactivity_data_wp_context( array() ) );
+               $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         'data-wp-context=\'{"a":1,"b":"2","c":true}\'',
</span><span class="cx" style="display: block; padding: 0 10px">                        wp_interactivity_data_wp_context(
</span><span class="cx" style="display: block; padding: 0 10px">                                array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -366,11 +366,11 @@
</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">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         'data-wp-context=\'{"a":[1,2]}\'',
</span><span class="cx" style="display: block; padding: 0 10px">                        wp_interactivity_data_wp_context( array( 'a' => array( 1, 2 ) ) )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         'data-wp-context=\'[1,2]\'',
</span><span class="cx" style="display: block; padding: 0 10px">                        wp_interactivity_data_wp_context( array( 1, 2 ) )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -385,8 +385,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers wp_interactivity_data_wp_context
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_interactivity_data_wp_context_with_different_arrays_and_a_namespace() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'data-wp-context=\'myPlugin::{}\'', wp_interactivity_data_wp_context( array(), 'myPlugin' ) );
-               $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'data-wp-context=\'myPlugin::{}\'', wp_interactivity_data_wp_context( array(), 'myPlugin' ) );
+               $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         'data-wp-context=\'myPlugin::{"a":1,"b":"2","c":true}\'',
</span><span class="cx" style="display: block; padding: 0 10px">                        wp_interactivity_data_wp_context(
</span><span class="cx" style="display: block; padding: 0 10px">                                array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -397,11 +397,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'myPlugin'
</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">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         'data-wp-context=\'myPlugin::{"a":[1,2]}\'',
</span><span class="cx" style="display: block; padding: 0 10px">                        wp_interactivity_data_wp_context( array( 'a' => array( 1, 2 ) ), 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame(
</ins><span class="cx" style="display: block; padding: 0 10px">                         'data-wp-context=\'myPlugin::[1,2]\'',
</span><span class="cx" style="display: block; padding: 0 10px">                        wp_interactivity_data_wp_context( array( 1, 2 ), 'myPlugin' )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -418,10 +418,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers wp_interactivity_data_wp_context
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_interactivity_data_wp_context_with_json_flags() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'data-wp-context=\'{"tag":"\u003Cfoo\u003E"}\'', wp_interactivity_data_wp_context( array( 'tag' => '<foo>' ) ) );
-               $this->assertEquals( 'data-wp-context=\'{"apos":"\u0027bar\u0027"}\'', wp_interactivity_data_wp_context( array( 'apos' => "'bar'" ) ) );
-               $this->assertEquals( 'data-wp-context=\'{"quot":"\u0022baz\u0022"}\'', wp_interactivity_data_wp_context( array( 'quot' => '"baz"' ) ) );
-               $this->assertEquals( 'data-wp-context=\'{"amp":"T\u0026T"}\'', wp_interactivity_data_wp_context( array( 'amp' => 'T&T' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'data-wp-context=\'{"tag":"\u003Cfoo\u003E"}\'', wp_interactivity_data_wp_context( array( 'tag' => '<foo>' ) ) );
+               $this->assertSame( 'data-wp-context=\'{"apos":"\u0027bar\u0027"}\'', wp_interactivity_data_wp_context( array( 'apos' => "'bar'" ) ) );
+               $this->assertSame( 'data-wp-context=\'{"quot":"\u0022baz\u0022"}\'', wp_interactivity_data_wp_context( array( 'quot' => '"baz"' ) ) );
+               $this->assertSame( 'data-wp-context=\'{"amp":"T\u0026T"}\'', wp_interactivity_data_wp_context( array( 'amp' => 'T&T' ) ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -448,7 +448,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $processor         = new WP_HTML_Tag_Processor( $processed_content );
</span><span class="cx" style="display: block; padding: 0 10px">                $processor->next_tag( array( 'class_name' => 'test' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                unregister_block_type( 'test/custom-directive-block' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( '1', $processor->get_attribute( 'src' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( '1', $processor->get_attribute( 'src' ) );
</ins><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><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -488,8 +488,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px">                $second_input_value = $processor->get_attribute( 'value' );
</span><span class="cx" style="display: block; padding: 0 10px">                unregister_block_type( 'test/custom-directive-block' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( 'inner', $first_input_value );
-               $this->assertEquals( 'outer', $second_input_value );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( 'inner', $first_input_value );
+               $this->assertSame( 'outer', $second_input_value );
</ins><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></span></pre>
</div>
</div>

</body>
</html>