Fix newline issues in tests.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / AttrDefTest.php
blobc299c342eb871722e6f850d763cfd773cdf97c7a
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);