Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / StringHashTest.php
blob653e5bf709072d1018ef9d8958cb3ab00c1990d4
1 <?php
3 class HTMLPurifier_StringHashTest extends UnitTestCase
6 function testUsed() {
7 $hash = new HTMLPurifier_StringHash(array(
8 'key' => 'value',
9 'key2' => 'value2'
10 ));
11 $this->assertIdentical($hash->getAccessed(), array());
12 $t = $hash->offsetGet('key');
13 $this->assertIdentical($hash->getAccessed(), array('key' => true));
14 $hash->resetAccessed();
15 $this->assertIdentical($hash->getAccessed(), array());
20 // vim: et sw=4 sts=4