Skip to content

Commit

Permalink
Fix: Use named constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jul 4, 2023
1 parent e1f0ff0 commit 006469c
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions test/Unit/YamlParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ public function testParseReturnsParsedWhenContentIsEmptyFrontMatter(): void
TXT),
Data::empty(),
),
BodyMatter::create(Content::fromString(<<<'TXT'

TXT)),
BodyMatter::create(Content::empty()),
);

self::assertEquals($expected, $parsed);
Expand All @@ -486,9 +484,7 @@ public function testParseReturnsParsedWhenContentHasEmptyFrontMatterAndBlankBody
TXT),
Data::empty(),
),
BodyMatter::create(Content::fromString(<<<'TXT'

TXT)),
BodyMatter::create(Content::empty()),
);

self::assertEquals($expected, $parsed);
Expand Down Expand Up @@ -554,9 +550,7 @@ public function testParseReturnsParsedWhenContentIsEmptyFrontMatterWithWhitespac
TXT),
Data::empty(),
),
BodyMatter::create(Content::fromString(<<<'TXT'

TXT)),
BodyMatter::create(Content::empty()),
);

self::assertEquals($expected, $parsed);
Expand Down Expand Up @@ -587,9 +581,7 @@ public function testParseReturnsParsedWhenContentHasEmptyFrontMatterWithWhitespa
TXT),
Data::empty(),
),
BodyMatter::create(Content::fromString(<<<'TXT'

TXT)),
BodyMatter::create(Content::empty()),
);

self::assertEquals($expected, $parsed);
Expand Down Expand Up @@ -776,9 +768,7 @@ public function testParseReturnsParsedWhenContentIsNonEmptyFrontMatter(): void
],
]),
),
BodyMatter::create(Content::fromString(<<<'TXT'

TXT)),
BodyMatter::create(Content::empty()),
);

self::assertEquals($expected, $parsed);
Expand Down Expand Up @@ -917,9 +907,7 @@ public function testParseReturnsParsedWhenContentIsNonEmptyFrontMatterWithWhites
],
]),
),
BodyMatter::create(Content::fromString(<<<'TXT'

TXT)),
BodyMatter::create(Content::empty()),
);

self::assertEquals($expected, $parsed);
Expand Down

0 comments on commit 006469c

Please sign in to comment.