Add documents on how to restructure configuration directives.
[htmlpurifier.git] / tests / HTMLPurifier / HTMLModule / RubyTest.php
blob23a1400d016b270c1e5c750129d23a50f32410ff
1 <?php
3 class HTMLPurifier_HTMLModule_RubyTest extends HTMLPurifier_HTMLModuleHarness
6 function setUp() {
7 parent::setUp();
8 $this->config->set('HTML.Doctype', 'XHTML 1.1');
11 function testBasicUse() {
12 $this->assertResult(
13 '<ruby><rb>WWW</rb><rt>World Wide Web</rt></ruby>'
17 function testRPUse() {
18 $this->assertResult(
19 '<ruby><rb>WWW</rb><rp>(</rp><rt>World Wide Web</rt><rp>)</rp></ruby>'
23 function testComplexUse() {
24 $this->assertResult(
25 '<ruby>
26 <rbc>
27 <rb>10</rb>
28 <rb>31</rb>
29 <rb>2002</rb>
30 </rbc>
31 <rtc>
32 <rt>Month</rt>
33 <rt>Day</rt>
34 <rt>Year</rt>
35 </rtc>
36 <rtc>
37 <rt rbspan="3">Expiration Date</rt>
38 </rtc>
39 </ruby>'
42 /* not implemented
43 function testBackwardsCompat() {
44 $this->assertResult(
45 '<ruby>A<rp>(</rp><rt>aaa</rt><rp>)</rp></ruby>',
46 '<ruby><rb>A</rb><rp>(</rp><rt>aaa</rt><rp>)</rp></ruby>'
55 // vim: et sw=4 sts=4