Typofix.
[htmlpurifier.git] / tests / HTMLPurifier / AttrDefTest.php
blobd7466e37dfe0190c5f64ebb15eb5368216c4b2a7
1 <?php
3 Mock::generatePartial(
4 'HTMLPurifier_AttrDef',
5 'HTMLPurifier_AttrDefTestable',
6 array('validate'));
8 class HTMLPurifier_AttrDefTest extends HTMLPurifier_Harness
11 function test_parseCDATA() {
13 $def = new HTMLPurifier_AttrDefTestable();
15 $this->assertIdentical('', $def->parseCDATA(''));
16 $this->assertIdentical('', $def->parseCDATA("\t\n\r \t\t"));
17 $this->assertIdentical('foo', $def->parseCDATA("\t\n\r foo\t\t"));
18 $this->assertIdentical('translate to space', $def->parseCDATA("translate\nto\tspace"));
22 function test_make() {
24 $def = new HTMLPurifier_AttrDefTestable();
25 $def2 = $def->make('');
26 $this->assertIdentical($def, $def2);
32 // vim: et sw=4 sts=4