File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 77 <file >./Inpsyde/Sniffs</file >
88 <file >./tests/src</file >
99 <file >./tests/cases</file >
10+ <file >./tests/e2e/E2eTest.php</file >
1011
1112 <!--
1213 PHP 7.4 and higher.
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ protected function setUp(): void
2121 public function testInpsydeAndTemplatesRulesets (): void
2222 {
2323 $ output = [];
24+ // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.system_calls_exec
2425 exec (
2526 sprintf (
2627 'cd %s && %s ' ,
@@ -37,7 +38,8 @@ public function testInpsydeAndTemplatesRulesets(): void
3738
3839 $ json = end ($ output );
3940
40- self ::assertSame ([
41+ // phpcs:disable Inpsyde.CodeQuality.LineLength.TooLong
42+ $ expectedMessages = [
4143 'index.php ' => [
4244 [
4345 'source ' => 'Inpsyde.CodeQuality.NoElse.ElseFound ' ,
@@ -64,13 +66,16 @@ public function testInpsydeAndTemplatesRulesets(): void
6466 ],
6567
6668 ],
67- ], $ this ->phpCsNormalizedOutput ($ json ));
69+ ];
70+ // phpcs:enable Inpsyde.CodeQuality.LineLength.TooLong
71+
72+ self ::assertSame ($ expectedMessages , $ this ->phpCsMessages ($ json ));
6873 }
6974
7075 /**
7176 * @psalm-return array<string, list<array{source: string, line: positive-int}>>
7277 */
73- private function phpCsNormalizedOutput (string $ json ): array
78+ private function phpCsMessages (string $ json ): array
7479 {
7580 /** @var array{
7681 * files: array<string, array{
You can’t perform that action at this time.
0 commit comments