3use PHPUnit\Framework\TestCase;
41 foreach ($input_expected as $ie) {
76 foreach ($input_expected as $ie) {
101 foreach ($input_expected as $ie) {
113 $xml =
"<Foo>[[bar]]</Foo>";
117 $r[0][
"nt"]->mTextform
127 $xml =
"<Foo>[[bar]]</Foo><Par>[[bar1]] some text [[bar2]]</Par>";
131 $r[0][
"nt"]->mTextform
135 $r[1][
"nt"]->mTextform
139 $r[2][
"nt"]->mTextform
145 $xml =
"<Foo>[[bar]]</Foo><Par>[[bar1]] some text [[bar]]</Par>";
149 $r[0][
"nt"]->mTextform
153 $r[1][
"nt"]->mTextform
157 $r[2][
"nt"]->mTextform
163 $xml =
"<Foo>[[bar|some text]]</Foo>";
167 $r[0][
"nt"]->mTextform
177 $xml =
"<Foo>lore [[bar|some text]] ipsum</Foo><Par>More [[second link|some text for second]]</Par>";
181 $r[0][
"nt"]->mTextform
189 $r[1][
"nt"]->mTextform
192 "some text for second",
209 $xml =
"<Foo>[[bar]]</Foo>";
219 $xml =
"<Foo>[[bar]]</Foo><Par>[[bar1]] some text [[bar]]</Par>";
229 $xml =
"<Foo>lore [[bar|some text]] ipsum</Foo><Par>More [[second link|some text for second]]</Par>";
232 [
"bar",
"second link"],
248 $xml =
"<Foo>Some text without a link</Par>";
An exception for terminatinating execution or to throw for unit testing.
testProcessInternalLinksExtCollect()
testProcessInternalLinksExtCollectMultipleSame()
testProcessInternalLinksExtCollectMultiText()
processInternalLinksExtCollect(string $xml)
testProcessInternalLinksExtCollectOneSimple()
processInternalLinksCollect(string $xml)
testProcessInternalLinksCollectMultipleSame()
testProcessInternalLinksReplaceWithoutLink()
testProcessInternalLinksExtCollectMultipleSimple()
testProcessInternalLinksCollectMultiText()
testProcessInternalLinksCollectOneSimple()
processInternalLinksReplace(string $xml)
testProcessInternalLinksExtCollectOneText()
const IL_WIKI_MODE_REPLACE
Wiki link / page title handling:
const IL_WIKI_MODE_COLLECT
const IL_WIKI_MODE_EXT_COLLECT
static processInternalLinks( $s, $a_wiki_id, $a_mode=IL_WIKI_MODE_REPLACE, $a_collect_non_ex=false, $a_offline=false)
Process internal links.
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
static makeDbTitle($a_par)
Handle page GET parameter.