1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-04 13:18:00 +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

@@ -5,13 +5,14 @@ class HTMLPurifier_Lexer_DirectLexTest extends HTMLPurifier_Harness
protected $DirectLex;
function setUp() {
public function setUp()
{
$this->DirectLex = new HTMLPurifier_Lexer_DirectLex();
}
// internals testing
function test_parseAttributeString() {
public function test_parseAttributeString()
{
$input[0] = 'href="about:blank" rel="nofollow"';
$expect[0] = array('href'=>'about:blank', 'rel'=>'nofollow');
@@ -73,8 +74,8 @@ class HTMLPurifier_Lexer_DirectLexTest extends HTMLPurifier_Harness
}
function testLineNumbers() {
public function testLineNumbers()
{
// . . . . . . . . . .
// 01234567890123 01234567890123 0123456789012345 0123456789012 012345
$html = "<b>Line 1</b>\n<i>Line 2</i>\nStill Line 2<br\n/>Now Line 4\n\n<br />";