Skip to content

Commit

Permalink
Some additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 29, 2022
1 parent 8dfa6ad commit 153e051
Showing 1 changed file with 18 additions and 0 deletions.
Expand Up @@ -363,6 +363,24 @@ public function endOfFileNewlinesProvider(): Generator
'existingBaselineContent' => '',
'expectedNewlinesCount' => 1,
];

yield 'empty existing baseline, no new errors' => [
'errors' => [],
'existingBaselineContent' => '',
'expectedNewlinesCount' => 1,
];

yield 'empty existing baseline with a newline, no new errors' => [
'errors' => [],
'existingBaselineContent' => "\n",
'expectedNewlinesCount' => 1,
];

yield 'empty existing baseline with 2 newlines, no new errors' => [
'errors' => [],
'existingBaselineContent' => "\n\n",
'expectedNewlinesCount' => 2,
];
}

/**
Expand Down

0 comments on commit 153e051

Please sign in to comment.