mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-03 20:58:11 +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
@@ -5,11 +5,13 @@ class HTMLPurifier_ConfigSchemaTest extends HTMLPurifier_Harness
|
||||
|
||||
protected $schema;
|
||||
|
||||
public function setup() {
|
||||
public function setup()
|
||||
{
|
||||
$this->schema = new HTMLPurifier_ConfigSchema();
|
||||
}
|
||||
|
||||
function test_define() {
|
||||
public function test_define()
|
||||
{
|
||||
$this->schema->add('Car.Seats', 5, 'int', false);
|
||||
|
||||
$this->assertIdentical($this->schema->defaults['Car.Seats'], 5);
|
||||
@@ -22,7 +24,8 @@ class HTMLPurifier_ConfigSchemaTest extends HTMLPurifier_Harness
|
||||
|
||||
}
|
||||
|
||||
function test_defineAllowedValues() {
|
||||
public function test_defineAllowedValues()
|
||||
{
|
||||
$this->schema->add('QuantumNumber.Spin', 0.5, 'float', false);
|
||||
$this->schema->add('QuantumNumber.Current', 's', 'string', false);
|
||||
$this->schema->add('QuantumNumber.Difficulty', null, 'string', true);
|
||||
@@ -44,7 +47,8 @@ class HTMLPurifier_ConfigSchemaTest extends HTMLPurifier_Harness
|
||||
|
||||
}
|
||||
|
||||
function test_defineValueAliases() {
|
||||
public function test_defineValueAliases()
|
||||
{
|
||||
$this->schema->add('Abbrev.HTH', 'Happy to Help', 'string', false);
|
||||
$this->schema->addAllowedValues(
|
||||
'Abbrev.HTH', array(
|
||||
@@ -84,7 +88,8 @@ class HTMLPurifier_ConfigSchemaTest extends HTMLPurifier_Harness
|
||||
|
||||
}
|
||||
|
||||
function testAlias() {
|
||||
public function testAlias()
|
||||
{
|
||||
$this->schema->add('Home.Rug', 3, 'int', false);
|
||||
$this->schema->addAlias('Home.Carpet', 'Home.Rug');
|
||||
|
||||
|
Reference in New Issue
Block a user