| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function testAttributesSimplifier() |
||
| 12 | { |
||
| 13 | $minifier = new Minifier(new AttributesSimplifier); |
||
| 14 | |||
| 15 | $source = '<form method="GET"> |
||
| 16 | <input type="text" disabled="disabled"> |
||
| 17 | <input type="text" readonly="readonly"> |
||
| 18 | <select name="abc"> |
||
| 19 | <option selected="selected"></option> |
||
| 20 | </select> |
||
| 21 | </form> |
||
| 22 | <script async="true" src="/a.js"></script> |
||
| 23 | <script defer="defer" src="/b.js"></script>'; |
||
| 24 | |||
| 25 | $result = '<form> |
||
| 26 | <input type="text" disabled> |
||
| 27 | <input type="text" readonly> |
||
| 28 | <select name="abc"> |
||
| 29 | <option selected></option> |
||
| 30 | </select> |
||
| 31 | </form> |
||
| 32 | <script async src="/a.js"></script> |
||
| 33 | <script defer src="/b.js"></script>'; |
||
| 34 | |||
| 35 | $this->assertSame( |
||
| 36 | $result, |
||
| 37 | $minifier->process($source) |
||
| 38 | ); |
||
| 41 |