19declare(strict_types=1);
23use PHPUnit\Framework\TestCase;
33 protected function setUp(): void
41 $html =
"...{{{{{TestTag;1}}}}}...";
42 $pos = $this->util->getPosOfPlaceholder($html,
"TestTag");
48 $pos = $this->util->getPosOfPlaceholder($html,
"TestMissing");
57 $html =
"...{{{{{TestTag;1}}}}}...";
58 $pos = $this->util->getEndPosOfPlaceholder($html);
67 $html =
"...{{{{{TestTag;1;ab;cd}}}}}...";
68 $ph_string = $this->util->getPlaceholderParamString($html,
"TestTag");
77 $html =
"...{{{{{TestTag;1;ab;cd}}}}}...";
78 $ph_string = $this->util->getPlaceholderParams($html,
"TestTag");
80 [
"TestTag",
"1",
"ab",
"cd"],
87 $html =
"...{{{{{TestStart;1;ab;cd}}}}}The inner content.{{{{{TestEnd;1;ab;cd}}}}}";
88 $ph_string = $this->util->getInnerContentOfPlaceholders($html,
"TestStart",
"TestEnd");
97 $html =
"...{{{{{TestStart;1;ab;cd}}}}}The inner content.{{{{{TestEnd;1;ab;cd}}}}} abc";
98 $ph_string = $this->util->replaceInnerContentAndPlaceholders($html,
"TestStart",
"TestEnd",
"The new content.");
100 "...The new content. abc",
testGetPlaceholderParams()
testReplaceInnerContentAndPlaceholders()
testGetEndPosOfPlaceholder()
testGetPosOfPlaceholder()
testGetPlaceholderParamString()
testGetInnerContentOfPlaceholders()