From 5c5e3fe79f9ed56fc02ad2300b37caf56c619975 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 18 Jan 2012 18:21:36 -0500 Subject: [PATCH] Avoid doing stupidly clever reflection tricks that make old PHP versions sad. Signed-off-by: Edward Z. Yang --- tests/HTMLPurifier/ConfigTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/HTMLPurifier/ConfigTest.php b/tests/HTMLPurifier/ConfigTest.php index 5ffe5f54..3d36fc05 100644 --- a/tests/HTMLPurifier/ConfigTest.php +++ b/tests/HTMLPurifier/ConfigTest.php @@ -220,7 +220,7 @@ class HTMLPurifier_ConfigTest extends HTMLPurifier_Harness $def = $config->getHTMLDefinition(); $def2 = $config->getHTMLDefinition(); $this->assertIsA($def, 'HTMLPurifier_HTMLDefinition'); - $this->assertSame($def, $def2); + $this->assertTrue($def === $def2); $this->assertTrue($def->setup); $old_def = clone $def2; @@ -228,7 +228,7 @@ class HTMLPurifier_ConfigTest extends HTMLPurifier_Harness $config->set('HTML.Doctype', 'HTML 4.01 Transitional'); $def = $config->getHTMLDefinition(); $this->assertIsA($def, 'HTMLPurifier_HTMLDefinition'); - $this->assertNotEqual($def, $old_def); + $this->assertTrue($def !== $old_def); $this->assertTrue($def->setup); } @@ -491,7 +491,7 @@ class HTMLPurifier_ConfigTest extends HTMLPurifier_Harness $config = HTMLPurifier_Config::createDefault(); $config->set('HTML.Allowed', 'a'); $config2 = unserialize($config->serialize()); - $this->assertIdentical($config, $config2); + $this->assertIdentical($config->get('HTML.Allowed'), $config2->get('HTML.Allowed')); } function testDefinitionCachingNothing() {