mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 11:20:13 +02:00
PSR-2 reformatting PHPDoc corrections
With minor corrections. Signed-off-by: Marcus Bointon <marcus@synchromedia.co.uk> Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
committed by
Edward Z. Yang
parent
19eee14899
commit
fac747bdbd
@@ -2,23 +2,27 @@
|
||||
|
||||
class HTMLPurifier_AttrDef_HTML_ClassTest extends HTMLPurifier_AttrDef_HTML_NmtokensTest
|
||||
{
|
||||
function setUp() {
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->def = new HTMLPurifier_AttrDef_HTML_Class();
|
||||
}
|
||||
function testAllowedClasses() {
|
||||
public function testAllowedClasses()
|
||||
{
|
||||
$this->config->set('Attr.AllowedClasses', array('foo'));
|
||||
$this->assertDef('foo');
|
||||
$this->assertDef('bar', false);
|
||||
$this->assertDef('foo bar', 'foo');
|
||||
}
|
||||
function testForbiddenClasses() {
|
||||
public function testForbiddenClasses()
|
||||
{
|
||||
$this->config->set('Attr.ForbiddenClasses', array('bar'));
|
||||
$this->assertDef('foo');
|
||||
$this->assertDef('bar', false);
|
||||
$this->assertDef('foo bar', 'foo');
|
||||
}
|
||||
function testDefault() {
|
||||
public function testDefault()
|
||||
{
|
||||
$this->assertDef('valid');
|
||||
$this->assertDef('a0-_');
|
||||
$this->assertDef('-valid');
|
||||
@@ -40,7 +44,8 @@ class HTMLPurifier_AttrDef_HTML_ClassTest extends HTMLPurifier_AttrDef_HTML_Nmto
|
||||
// test duplicate removal
|
||||
$this->assertDef('valid valid', 'valid');
|
||||
}
|
||||
function testXHTML11Behavior() {
|
||||
public function testXHTML11Behavior()
|
||||
{
|
||||
$this->config->set('HTML.Doctype', 'XHTML 1.1');
|
||||
$this->assertDef('0invalid', false);
|
||||
$this->assertDef('valid valid', 'valid');
|
||||
|
Reference in New Issue
Block a user