Prepended constants with C_ to avoid reserved words as per https://www.php.net/manual...
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / HTMLModule / RubyTest.php
blobee509a3c2b00a2fa5e25224baec17fbda65f1894
1 <?php
3 class HTMLPurifier_HTMLModule_RubyTest extends HTMLPurifier_HTMLModuleHarness
6 public function setUp()
8 parent::setUp();
9 $this->config->set('HTML.Doctype', 'XHTML 1.1');
12 public function testBasicUse()
14 $this->assertResult(
15 '<ruby><rb>WWW</rb><rt>World Wide Web</rt></ruby>'
19 public function testRPUse()
21 $this->assertResult(
22 '<ruby><rb>WWW</rb><rp>(</rp><rt>World Wide Web</rt><rp>)</rp></ruby>'
26 public function testComplexUse()
28 $this->assertResult(
29 '<ruby>
30 <rbc>
31 <rb>10</rb>
32 <rb>31</rb>
33 <rb>2002</rb>
34 </rbc>
35 <rtc>
36 <rt>Month</rt>
37 <rt>Day</rt>
38 <rt>Year</rt>
39 </rtc>
40 <rtc>
41 <rt rbspan="3">Expiration Date</rt>
42 </rtc>
43 </ruby>'
46 /* not implemented
47 function testBackwardsCompat()
49 $this->assertResult(
50 '<ruby>A<rp>(</rp><rt>aaa</rt><rp>)</rp></ruby>',
51 '<ruby><rb>A</rb><rp>(</rp><rt>aaa</rt><rp>)</rp></ruby>'
60 // vim: et sw=4 sts=4