public function testInvalidInput() { $content = file_get_contents(__DIR__ . '/Resources/invalid.html'); $document = FrontMatter::parse($content); $this->assertEquals(array(), $document->getConfig()); $this->assertEquals($content, $document->getContent()); }
private function extractFrontMatter($file) { $contents = $this->fs->fileContents($file); return FrontMatter::parse($contents); }