| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function testCreate() |
||
| 22 | { |
||
| 23 | $frontMatter = TwigCommentFrontMatter::create(); |
||
| 24 | $this->assertInstanceOf(FrontMatter::class, $frontMatter); |
||
| 25 | |||
| 26 | $document = $frontMatter->parse("{#---\nfoo: bar\n---#}\nContent\n"); |
||
| 27 | $this->assertEquals(['foo' => 'bar'], $document->getData()); |
||
| 28 | $this->assertEquals("Content\n", $document->getContent()); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |