aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_processing
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2016-07-18 19:06:29 +0200
committerJoshyPHP <s9e.dev@gmail.com>2016-07-18 19:06:29 +0200
commite9e6847803f6c99aeb4a7dffbacd12dc57c9d9e9 (patch)
treecf3f775b450b9cef42ebf4100f3f6f4bc52e2142 /tests/text_processing
parente7ce7ecbe79b036a9cf7dab9ea343efd0d47e1a7 (diff)
downloadforums-e9e6847803f6c99aeb4a7dffbacd12dc57c9d9e9.tar
forums-e9e6847803f6c99aeb4a7dffbacd12dc57c9d9e9.tar.gz
forums-e9e6847803f6c99aeb4a7dffbacd12dc57c9d9e9.tar.bz2
forums-e9e6847803f6c99aeb4a7dffbacd12dc57c9d9e9.tar.xz
forums-e9e6847803f6c99aeb4a7dffbacd12dc57c9d9e9.zip
[ticket/14663] Added regression test for Unicode in custom BBCodes
PHPBB3-14663
Diffstat (limited to 'tests/text_processing')
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-14663.html1
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-14663.txt1
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-14663.xml28
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/text_processing/tickets_data/PHPBB3-14663.html b/tests/text_processing/tickets_data/PHPBB3-14663.html
new file mode 100644
index 0000000000..b18bcfd52b
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-14663.html
@@ -0,0 +1 @@
+<input type="button" value="Кнопка!"> Тест \ No newline at end of file
diff --git a/tests/text_processing/tickets_data/PHPBB3-14663.txt b/tests/text_processing/tickets_data/PHPBB3-14663.txt
new file mode 100644
index 0000000000..5443ae3046
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-14663.txt
@@ -0,0 +1 @@
+[test]Тест[/test] \ No newline at end of file
diff --git a/tests/text_processing/tickets_data/PHPBB3-14663.xml b/tests/text_processing/tickets_data/PHPBB3-14663.xml
new file mode 100644
index 0000000000..423d01e242
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-14663.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<dataset>
+ <table name="phpbb_bbcodes">
+ <column>bbcode_id</column>
+ <column>bbcode_tag</column>
+ <column>bbcode_helpline</column>
+ <column>display_on_posting</column>
+ <column>bbcode_match</column>
+ <column>bbcode_tpl</column>
+ <column>first_pass_match</column>
+ <column>first_pass_replace</column>
+ <column>second_pass_match</column>
+ <column>second_pass_replace</column>
+
+ <row>
+ <value>13</value>
+ <value>test</value>
+ <value></value>
+ <value>1</value>
+ <value>[test]{TEXT}[/test]</value>
+ <value><![CDATA[<input type=button value="Кнопка!" /> {TEXT}]]></value>
+ <value><![CDATA[!\[test\](.*?)\[/test\]!ies]]></value>
+ <value><![CDATA['[test:$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', '&#39;', '&#40;', '&#41;'), trim('${1}')).'[/test:$uid]']]></value>
+ <value><![CDATA[!\[test:$uid\](.*?)\[/test:$uid\]!s]]></value>
+ <value><![CDATA[<input type=button value="Кнопка!" /> ${1}]]></value>
+ </row>
+ </table>
+</dataset>