PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / AttrDefTest.php
blobed4f2492ae02a74c0fe249d840f787e396fb6da5
1 <?php
3 Mock::generatePartial(
4 'HTMLPurifier_AttrDef',
5 'HTMLPurifier_AttrDefTestable',
6 array('validate'));
8 class HTMLPurifier_AttrDefTest extends HTMLPurifier_Harness
11 public 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 public function test_make()
24 $def = new HTMLPurifier_AttrDefTestable();
25 $def2 = $def->make('');
26 $this->assertIdentical($def, $def2);
32 // vim: et sw=4 sts=4