PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / HTML / ColorTest.php
blob01c279a52c40b9f2a360d397e61a2c03685cc05a
1 <?php
3 class HTMLPurifier_AttrDef_HTML_ColorTest extends HTMLPurifier_AttrDefHarness
6 public function test()
8 $this->def = new HTMLPurifier_AttrDef_HTML_Color();
9 $this->assertDef('', false);
10 $this->assertDef('foo', false);
11 $this->assertDef('43', false);
12 $this->assertDef('red', '#FF0000');
13 $this->assertDef('RED', '#FF0000');
14 $this->assertDef('#FF0000');
15 $this->assertDef('#453443');
16 $this->assertDef('453443', '#453443');
17 $this->assertDef('#345', '#334455');
18 $this->assertDef('120', '#112200');
22 // vim: et sw=4 sts=4