From b8485995439f4580f5d0c8f4746b8836eb04c798 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 17 Sep 2022 11:19:47 +0200 Subject: [PATCH] fix tests --- src/Testing/LevelsTestCase.php | 4 ++++ .../ErrorFormatter/TableErrorFormatterTest.php | 14 ++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/Testing/LevelsTestCase.php b/src/Testing/LevelsTestCase.php index 0204461a344..277c9db9f43 100644 --- a/src/Testing/LevelsTestCase.php +++ b/src/Testing/LevelsTestCase.php @@ -110,6 +110,8 @@ public function testLevels( } } + unset($message['tip']); + $messages[] = $message; } @@ -124,6 +126,8 @@ public function testLevels( } } + unset($previousMessage['tip']); + $missingMessages[] = $previousMessage; } diff --git a/tests/PHPStan/Command/ErrorFormatter/TableErrorFormatterTest.php b/tests/PHPStan/Command/ErrorFormatter/TableErrorFormatterTest.php index 28ae7cd621b..f83f2de8500 100644 --- a/tests/PHPStan/Command/ErrorFormatter/TableErrorFormatterTest.php +++ b/tests/PHPStan/Command/ErrorFormatter/TableErrorFormatterTest.php @@ -85,13 +85,14 @@ public function dataFormatterOutputProvider(): iterable 4 Foo ------ ------------------------------------------------------------------- - ------ --------- + ------ ---------- Line foo.php - ------ --------- + ------ ---------- 1 Foo 5 Bar Bar2 - ------ --------- + 💡 a tip + ------ ---------- [ERROR] Found 4 errors @@ -129,13 +130,14 @@ public function dataFormatterOutputProvider(): iterable 4 Foo ------ ------------------------------------------------------------------- - ------ --------- + ------ ---------- Line foo.php - ------ --------- + ------ ---------- 1 Foo 5 Bar Bar2 - ------ --------- + 💡 a tip + ------ ---------- -- ---------------------- Error