| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class EmbedlyBlockTest extends SapphireTest |
||
| 8 | { |
||
| 9 | public function testWidthAcceptsPercent() |
||
| 15 | } |
||
| 16 | |||
| 17 | public function testWidthAcceptsPx() |
||
| 18 | { |
||
| 19 | $block = new EmbedlyBlock([ |
||
| 20 | 'Width' => '100px' |
||
| 21 | ]); |
||
| 22 | $this->assertEquals('100px', $block->getWidthAttribute()); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function testWidthSanitisesInvalidValues() |
||
| 31 | } |
||
| 32 | } |
||
| 33 |