mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
20 lines
430 B
PHP
20 lines
430 B
PHP
|
<?php
|
||
|
|
||
|
require_once 'HTMLPurifier/AttrDef/Text.php';
|
||
|
|
||
|
class HTMLPurifier_AttrDef_TextTest extends UnitTestCase
|
||
|
{
|
||
|
|
||
|
function test() {
|
||
|
|
||
|
$def = new HTMLPurifier_AttrDef_Text();
|
||
|
|
||
|
$this->assertTrue($def->validate('This is spiffy text!'));
|
||
|
$this->assertEqual('Casual CDATA parsecheck.',
|
||
|
$def->validate(" Casual\tCDATA parse\ncheck. "));
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|