1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-05 05:37:49 +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:
Marcus Bointon
2013-07-16 13:56:14 +02:00
committed by Edward Z. Yang
parent 19eee14899
commit fac747bdbd
433 changed files with 13302 additions and 6690 deletions

View File

@@ -3,8 +3,8 @@
class HTMLPurifier_VarParser_FlexibleTest extends HTMLPurifier_VarParserHarness
{
function testValidate() {
public function testValidate()
{
$this->assertValid('foobar', 'string');
$this->assertValid('foobar', 'text');
$this->assertValid('FOOBAR', 'istring', 'foobar');
@@ -51,11 +51,13 @@ class HTMLPurifier_VarParser_FlexibleTest extends HTMLPurifier_VarParserHarness
}
function testValidate_withMagicNumbers() {
public function testValidate_withMagicNumbers()
{
$this->assertValid('foobar', HTMLPurifier_VarParser::STRING);
}
function testValidate_null() {
public function testValidate_null()
{
$this->assertIdentical($this->parser->parse(null, 'string', true), null);
$this->expectException('HTMLPurifier_VarParserException');
$this->parser->parse(null, 'string', false);