3 // borrowed for the sakes of this test
4 class HTMLPurifier_AttrDef_CSS_MultipleTest
extends HTMLPurifier_AttrDefHarness
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');