'Plan launch', 'completed' => false, 'order' => 200, 'tags' => ['alpha', 'beta'], 'assignee' => [ 'name' => 'Casey', 'role' => 'owner', ], ]; $body = "Ship the first milestone.\n\nKeep the checklist updated."; $document = FrontMatter::parse(FrontMatter::dump($meta, $body)); self::assertSame($meta, $document->meta); self::assertSame($body . "\n", $document->body); } /** * Ensure plain markdown without front matter is preserved. * * @return void */ public function testParseWithoutFrontMatterReturnsBodyOnly(): void { $document = FrontMatter::parse("Just markdown\n\n- item"); self::assertSame([], $document->meta); self::assertSame("Just markdown\n\n- item", $document->body); } }