Skip to content

Commit 4fedde6

Browse files
committed
Fix test to use non-interned string
1 parent 5b58911 commit 4fedde6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ext/dom/tests/modern/html/parser/Element_innerHTML.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $el->innerHTML = "invalid\xffutf-8𐍈𐍈𐍈";
2020
echo $dom->saveXML(), "\n";
2121

2222
// Create a non-interned string that gets the UTF-8 validity flag added
23-
$str = str_repeat("my valid string", random_int(1, 1));
23+
$str = str_repeat("my valid string", random_int(2, 2));
2424
preg_match('/^.*$/u', $str);
2525
$el->innerHTML = $str;
2626
echo $dom->saveXML(), "\n";
@@ -56,7 +56,7 @@ echo $dom->saveXML(), "\n";
5656
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
5757
<div xmlns="http://www.w3.org/1999/xhtml">invalid�utf-8𐍈𐍈𐍈</div>
5858
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
59-
<div xmlns="http://www.w3.org/1999/xhtml">my valid string</div>
59+
<div xmlns="http://www.w3.org/1999/xhtml">my valid stringmy valid string</div>
6060
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
6161
<style xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;foo&lt;/p&gt;</style>
6262
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

0 commit comments

Comments
 (0)