public function testToStringAndFrontMatter() { $tmpMarkdown = '# Foo'; $tmpFrontMatter = array('Tag' => array('Bar', 'Bazz', 'Buzz')); $mdObj = new MarkdownRevision('# Foo'); $mdObj->setFrontMatter($tmpFrontMatter); // In the test fixture, we said that "Foo" was the content of the // contribution, let’s test that. Also, we may change the way the // content is generated, see MarkdownRevision for instance. $this->assertSame("---\nTag:\n - Bar\n - Bazz\n - Buzz\n\n---\n# Foo", (string) $mdObj); }