3 class HTMLPurifier_StringHashTest
extends UnitTestCase
6 public function testUsed()
8 $hash = new HTMLPurifier_StringHash(array(
12 $this->assertIdentical($hash->getAccessed(), array());
13 $t = $hash->offsetGet('key');
14 $this->assertIdentical($hash->getAccessed(), array('key' => true));
15 $hash->resetAccessed();
16 $this->assertIdentical($hash->getAccessed(), array());