| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | 9 | protected function setUp() |
|
| 41 | { |
||
| 42 | 9 | if (isset($this->configurator->tags[$this->tagName])) |
|
| 43 | 9 | { |
|
| 44 | 1 | return; |
|
| 45 | } |
||
| 46 | |||
| 47 | // Create a tag |
||
| 48 | 8 | $tag = $this->configurator->tags->add($this->tagName); |
|
| 49 | |||
| 50 | // Add an attribute using the default url filter |
||
| 51 | 8 | $filter = $this->configurator->attributeFilters['#url']; |
|
| 52 | 8 | $tag->attributes->add($this->attrName)->filterChain->append($filter); |
|
| 53 | |||
| 54 | // Set the default template |
||
| 55 | 8 | $tag->template = '<video src="{@' . $this->attrName . '}"/>'; |
|
| 56 | } |
||
| 57 | } |