Add %HTML.TargetNoreferrer, which adds rel="noreferrer" when target attribute is set
[htmlpurifier.git] / tests / HTMLPurifier / StringHashTest.php
blob226d1a41488d8b64183dc82fb043aa360f6f805f
1 <?php
3 class HTMLPurifier_StringHashTest extends UnitTestCase
6 public function testUsed()
8 $hash = new HTMLPurifier_StringHash(array(
9 'key' => 'value',
10 'key2' => 'value2'
11 ));
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());
21 // vim: et sw=4 sts=4