PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / HTML / FrameTargetTest.php
blob4f9f9292f906377a06049025c1482711d5db210f
1 <?php
3 class HTMLPurifier_AttrDef_HTML_FrameTargetTest extends HTMLPurifier_AttrDefHarness
6 public function setup()
8 parent::setup();
9 $this->def = new HTMLPurifier_AttrDef_HTML_FrameTarget();
12 public function testNoneAllowed()
14 $this->assertDef('', false);
15 $this->assertDef('foo', false);
16 $this->assertDef('_blank', false);
17 $this->assertDef('baz', false);
20 public function test()
22 $this->config->set('Attr.AllowedFrameTargets', 'foo,_blank');
23 $this->assertDef('', false);
24 $this->assertDef('foo');
25 $this->assertDef('_blank');
26 $this->assertDef('baz', false);
31 // vim: et sw=4 sts=4