/** * The post's YAML frontmatter * * Returns String the YAML frontmatter, ready to be written to the file */ public function front_matter() { return "---\n" . cyps_dump($this->meta()) . "---\n"; }
public function testShortSyntax() { $dump = cyps_dump(array('item1', 'item2', 'item3')); $awaiting = "- item1\n- item2\n- item3\n"; $this->assertEquals($awaiting, $dump); }