Improve auto-paragraph to preserve newlines and handle edge-cases better.
[htmlpurifier.git] / tests / HTMLPurifier / StringHashTest.php
bloba9ec9105730e7cbf8d364f1c97809fbdee0a6e5d
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());