2006-08-04 03:13:04 +00:00
|
|
|
<?php
|
|
|
|
|
2006-08-05 00:30:31 +00:00
|
|
|
require_once 'HTMLPurifier/AttrDefHarness.php';
|
2006-08-04 03:13:04 +00:00
|
|
|
require_once 'HTMLPurifier/AttrDef/Text.php';
|
|
|
|
|
2006-08-05 00:30:31 +00:00
|
|
|
class HTMLPurifier_AttrDef_TextTest extends HTMLPurifier_AttrDefHarness
|
2006-08-04 03:13:04 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
|
2006-08-05 00:30:31 +00:00
|
|
|
$this->def = new HTMLPurifier_AttrDef_Text();
|
2006-08-04 03:13:04 +00:00
|
|
|
|
2006-08-05 00:30:31 +00:00
|
|
|
$this->assertDef('This is spiffy text!');
|
|
|
|
$this->assertDef(" Casual\tCDATA parse\ncheck. ", 'Casual CDATA parsecheck.');
|
2006-08-04 03:13:04 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|