You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
530B

  1. <?php
  2. class HTMLPurifier_StringHashTest extends UnitTestCase
  3. {
  4. public function testUsed()
  5. {
  6. $hash = new HTMLPurifier_StringHash(array(
  7. 'key' => 'value',
  8. 'key2' => 'value2'
  9. ));
  10. $this->assertIdentical($hash->getAccessed(), array());
  11. $t = $hash->offsetGet('key');
  12. $this->assertIdentical($hash->getAccessed(), array('key' => true));
  13. $hash->resetAccessed();
  14. $this->assertIdentical($hash->getAccessed(), array());
  15. }
  16. }
  17. // vim: et sw=4 sts=4