1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Add testcases for links inside BB code

This commit is contained in:
Michal Čihař
2011-10-24 13:51:58 +02:00
parent ebdad5e1c1
commit a67bd38133

View File

@@ -241,7 +241,10 @@ class PMA_Message_test extends PHPUnit_Extensions_OutputTestCase
array('[i]test[/i][i]aa[i/][em]test[/em]', '<em>test</em><em>aa[i/]<em>test</em>'),
array('[b]test[/b][strong]test[/strong]', '<strong>test</strong><strong>test</strong>'),
array('[tt]test[/tt][code]test[/code]', '<code>test</code><code>test</code>'),
array('[kbd]test[/kbd][br][sup]test[/sup]', '<kbd>test</kbd><br /><sup>test</sup>')
array('[kbd]test[/kbd][br][sup]test[/sup]', '<kbd>test</kbd><br /><sup>test</sup>'),
array('[a@http://foo.bar/@Documentation]link[/a]', '<a href="./url.php?url=http%3A%2F%2Ffoo.bar%2F" target="Documentation">link</a>'),
array('[a@./non-existing@Documentation]link[/a]', '[a@./non-existing@Documentation]link</a>'),
array('[a@./Documentation.html@Documentation]link[/a]', '<a href="./Documentation.html" target="Documentation">link</a>'),
);
}