Docblock update
[htmlpurifier.git] / tests / HTMLPurifier / AttrDefHarness.php
blobe2029c048dc29bdda207ad2b1b985b47b9e4498e
1 <?php
3 class HTMLPurifier_AttrDefHarness extends HTMLPurifier_Harness
6 protected $def;
7 protected $context, $config;
9 public function setUp()
11 $this->config = HTMLPurifier_Config::createDefault();
12 $this->context = new HTMLPurifier_Context();
15 // cannot be used for accumulator
16 public function assertDef($string, $expect = true)
18 // $expect can be a string or bool
19 $result = $this->def->validate($string, $this->config, $this->context);
20 if ($expect === true) {
21 $this->assertIdentical($string, $result);
22 } else {
23 $this->assertIdentical($expect, $result);
29 // vim: et sw=4 sts=4