Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Sep 20, 2022
1 parent 7318c4a commit b848599
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/Testing/LevelsTestCase.php
Expand Up @@ -110,6 +110,8 @@ public function testLevels(
}
}

unset($message['tip']);

$messages[] = $message;
}

Expand All @@ -124,6 +126,8 @@ public function testLevels(
}
}

unset($previousMessage['tip']);

$missingMessages[] = $previousMessage;
}

Expand Down
14 changes: 8 additions & 6 deletions tests/PHPStan/Command/ErrorFormatter/TableErrorFormatterTest.php
Expand Up @@ -85,13 +85,14 @@ public function dataFormatterOutputProvider(): iterable
4 Foo
------ -------------------------------------------------------------------
------ ---------
------ ----------
Line foo.php
------ ---------
------ ----------
1 Foo
5 Bar
Bar2
------ ---------
💡 a tip
------ ----------
[ERROR] Found 4 errors
Expand Down Expand Up @@ -129,13 +130,14 @@ public function dataFormatterOutputProvider(): iterable
4 Foo
------ -------------------------------------------------------------------
------ ---------
------ ----------
Line foo.php
------ ---------
------ ----------
1 Foo
5 Bar
Bar2
------ ---------
💡 a tip
------ ----------
-- ----------------------
Error
Expand Down

0 comments on commit b848599

Please sign in to comment.