]> git.mxchange.org Git - friendica.git/commitdiff
Make test comply.
authordew-git <55564947+dew-git@users.noreply.github.com>
Fri, 11 Oct 2019 05:21:22 +0000 (21:21 -0800)
committerdew-git <55564947+dew-git@users.noreply.github.com>
Fri, 11 Oct 2019 05:21:22 +0000 (21:21 -0800)
tests/src/Util/StringsTest.php

index f926183108c1e71634414bd80397788279d36f11..03bc88d74c75457ccb61444b144294bdcd69efaa 100644 (file)
@@ -12,7 +12,7 @@ use PHPUnit\Framework\TestCase;
  */
 class StringsTest extends TestCase
 {
-    /**
+       /**
         * randomnames should be random, even length
         */
        public function testRandomEven()
@@ -64,9 +64,9 @@ class StringsTest extends TestCase
 
                $randomname2 = Strings::getRandomName(1);
                $this->assertEquals(1, strlen($randomname2));
-    }
-    
-    /**
+       }
+
+       /**
         * test, that tags are escaped
         */
        public function testEscapeHtml()
@@ -78,7 +78,7 @@ class StringsTest extends TestCase
 
                $this->assertEquals('[submit type="button" onclick="alert(\'failed!\');" /]', $validstring);
                $this->assertEquals(
-                       "&lt;submit type=&quot;button&quot; onclick=&quot;alert('failed!');&quot; /&gt;",
+                       '&lt;submit type&equals;&quot;button&quot; onclick&equals;&quot;alert&lpar;&apos;failed&excl;&apos;&rpar;&semi;&quot; &sol;&gt;',
                        $escapedString
                );
        }