From 0167f8aa84682b48e2bb2dcf6f65407abd40517b Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 27 Mar 2007 23:15:01 +0000 Subject: [PATCH] [1.5.1] Try separating out declarations, might stop segfaulting. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@911 48356398-32a2-884e-a903-53898d9a118a --- tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php b/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php index 0a4e496f..037131fb 100644 --- a/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php +++ b/tests/HTMLPurifier/AttrDef/CSS/CompositeTest.php @@ -60,8 +60,8 @@ class HTMLPurifier_AttrDef_CSS_CompositeTest extends HTMLPurifier_AttrDefHarness $def2->expectOnce('validate', $def_params); $def2->setReturnValue('validate', $output, $def_params); - $this->assertIdentical($output, - $def->validate($input, $config, $context)); + $result = $def->validate($input, $config, $context); + $this->assertIdentical($output, $result); $def1->tally(); $def2->tally(); @@ -80,8 +80,8 @@ class HTMLPurifier_AttrDef_CSS_CompositeTest extends HTMLPurifier_AttrDefHarness $def2->expectOnce('validate', $def_params); $def2->setReturnValue('validate', false, $def_params); - $this->assertIdentical($output, - $def->validate($input, $config, $context)); + $result = $def->validate($input, $config, $context); + $this->assertIdentical($output, $result); $def1->tally(); $def2->tally();