Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testSimple() |
||
19 | { |
||
20 | $data = new Styles(); |
||
21 | $this->assertEmpty($data->getAttributes()); |
||
22 | $this->assertEmpty($data->getAttribute('style')); |
||
23 | $data->addCss('foo', 'snt'); |
||
24 | $data->addCss('bar', 'fgs'); |
||
25 | $data->addCss('baz', 'sdf'); |
||
26 | $this->assertEquals('sdf', $data->getCss('baz')); |
||
27 | $this->assertEquals('foo:snt;bar:fgs;baz:sdf;', $data->getAttribute('style')); |
||
28 | $data->removeCss('bar'); |
||
29 | $this->assertEquals('foo:snt;baz:sdf;', $data->getAttribute('style')); |
||
30 | } |
||
38 |