| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function testGetInfoFromFilename() |
||
| 12 | { |
||
| 13 | $theme = $this->theme('bands/blind-guardian')->findOrCreate(); |
||
| 14 | $parser = new DirectiveParser($theme); |
||
| 15 | |||
| 16 | $component = $theme->component('musics/bards-song')->create(); |
||
| 17 | |||
| 18 | $file = $component->path(); |
||
| 19 | $info = $parser->parse($file)->toObject(); |
||
| 20 | |||
| 21 | $this->assertInstanceOf(stdClass::class, $info); |
||
| 22 | $this->assertEquals($component->sentence(), $info->sentence); |
||
| 23 | } |
||
| 24 | } |