| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php namespace Webwizo\Shortcodes; |
||
| 24 | public function testRegistrationAndCompileShortcode() |
||
| 25 | { |
||
| 26 | $this->shortcode->register('b', function ($shortcode, $content) { |
||
| 27 | return sprintf('<strong class="%s">%s</strong>', $shortcode->class, $content); |
||
| 28 | }); |
||
| 29 | |||
| 30 | $compiled = $this->shortcode->compile($this->string); |
||
| 31 | |||
| 32 | $this->assertEquals($this->compiled, $compiled); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |