1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-05 21:57:26 +02:00

Make StringHash compatible for all versions of PHP 5.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1533 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-02-07 18:02:18 +00:00
parent 3ba42106ba
commit 14ef0b75e5
3 changed files with 13 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ class ConfigSchema_StringHashTest extends UnitTestCase
'key2' => 'value2'
));
$this->assertIdentical($hash->getAccessed(), array());
$t = $hash['key'];
$t = $hash->offsetGet('key');
$this->assertIdentical($hash->getAccessed(), array('key' => true));
$hash->resetAccessed();
$this->assertIdentical($hash->getAccessed(), array());