| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 32 | 1 | public function testDataWithoutMetaDataBlock() |
|
| 33 | { |
||
| 34 | 1 | $raw = "# Hello World\n## Hello you too"; |
|
| 35 | 1 | $parser = new Meta([ |
|
| 36 | 1 | 'fences' => ['yaml' => ['open' => '---', 'close' => '---']], |
|
| 37 | ]); |
||
| 38 | |||
| 39 | 1 | $content = $parser->extractContent($raw); |
|
| 40 | 1 | $this->assertSame($raw, $content); |
|
| 41 | |||
| 42 | 1 | $meta = $parser->parse($raw); |
|
| 43 | 1 | $this->assertSame([], $meta); |
|
| 44 | } |
||
| 46 |