PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / CSS / MultipleTest.php
blobe2725f74eab3d55f4908901d7b1ce47b0c4c380b
1 <?php
3 // borrowed for the sakes of this test
4 class HTMLPurifier_AttrDef_CSS_MultipleTest extends HTMLPurifier_AttrDefHarness
7 public function test()
9 $this->def = new HTMLPurifier_AttrDef_CSS_Multiple(
10 new HTMLPurifier_AttrDef_Integer()
13 $this->assertDef('1 2 3 4');
14 $this->assertDef('6');
15 $this->assertDef('4 5');
16 $this->assertDef(' 2 54 2 3', '2 54 2 3');
17 $this->assertDef("6\r3", '6 3');
19 $this->assertDef('asdf', false);
20 $this->assertDef('a s d f', false);
21 $this->assertDef('1 2 3 4 5', '1 2 3 4');
22 $this->assertDef('1 2 invalid 3', '1 2 3');
29 // vim: et sw=4 sts=4