Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mimmi20 committed May 29, 2023
1 parent 972c015 commit 14e7b60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
- name: "Run mutation tests with infection/infection"
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
run: "vendor/bin/infection --show-mutations --only-covered --min-covered-msi=94 --min-msi=94 --coverage=.build/coverage --logger-github --no-progress -vv"
run: "vendor/bin/infection --show-mutations --only-covered --min-covered-msi=97 --min-msi=97 --coverage=.build/coverage --logger-github --no-progress -vv"

# This is a meta job to avoid to have to constantly change the protection rules
# whenever we touch the matrix.
Expand Down
2 changes: 1 addition & 1 deletion src/StreamFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ private function replaceNewlines(string $str): string
{
if ($this->allowInlineLineBreaks) {
return str_replace(
['\\\\r\\\\n', '\\\r\\\n', '\\r\\n', '\r\n', '\\\\r', '\\\r', '\\r', '\r', '\\\\n', '\\\n', '\\n', '\n', "\r\n", "\r"],
['\\\\r\\\\n', '\\r\\n', '\\\\r', '\\r', '\\\\n', '\\n', "\r\n", "\r"],
"\n",
$str,
);
Expand Down
4 changes: 2 additions & 2 deletions tests/StreamFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3338,7 +3338,7 @@ static function (TableSeparator | array $row) use ($matcher, $table, $datetime,
self::assertInstanceOf(TableCell::class, $tableCell2);
self::assertSame(
str_replace(
['\\\\r\\\\n', '\\\r\\\n', '\\r\\n', '\r\n', '\\\\r', '\\\r', '\\r', '\r', '\\\\n', '\\\n', '\\n', '\n', "\r\n", "\r"],
['\\\\r\\\\n', '\\r\\n', '\\\\r', '\\r', '\\\\n', '\\n', "\r\n", "\r"],
"\n",
$message3,
),
Expand Down Expand Up @@ -3377,7 +3377,7 @@ static function (TableSeparator | array $row) use ($matcher, $table, $datetime,
self::assertInstanceOf(TableCell::class, $tableCell2);
self::assertSame(
str_replace(
['\\\\r\\\\n', '\\\r\\\n', '\\r\\n', '\r\n', '\\\\r', '\\\r', '\\r', '\r', '\\\\n', '\\\n', '\\n', '\n'],
['\\\\r\\\\n', '\\r\\n', '\\\\r', '\\r', '\\\\n', '\\n', "\r\n", "\r"],
"\n",
$message2,
),
Expand Down

0 comments on commit 14e7b60

Please sign in to comment.