From c9e7ffc1723e22dc336ac5ab1e1922399c07afd6 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Fri, 12 Nov 2010 15:43:10 +0000 Subject: [PATCH] Fix incorrect PEARSax3 test assertion. Signed-off-by: Edward Z. Yang --- tests/HTMLPurifier/LexerTest.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/tests/HTMLPurifier/LexerTest.php b/tests/HTMLPurifier/LexerTest.php index f2e63ecc..edc9e975 100644 --- a/tests/HTMLPurifier/LexerTest.php +++ b/tests/HTMLPurifier/LexerTest.php @@ -755,6 +755,15 @@ div {} } function test_tokenizeHTML_imgTag() { + $start = array( + new HTMLPurifier_Token_Start('img', + array( + 'src' => 'img_11775.jpg', + 'alt' => '[Img #11775]', + 'id' => 'EMBEDDED_IMG_11775', + ) + ) + ); $this->assertTokenization( '[Img #11775]', array( @@ -767,15 +776,8 @@ div {} ) ), array( - 'DirectLex' => array( - new HTMLPurifier_Token_Start('img', - array( - 'src' => 'img_11775.jpg', - 'alt' => '[Img #11775]', - 'id' => 'EMBEDDED_IMG_11775', - ) - ) - ), + 'DirectLex' => $start, + 'PEARSax3' => $start, ) ); } -- 2.11.4.GIT