From 42494f5017815b90d85f519d6359b382a083dd91 Mon Sep 17 00:00:00 2001 From: orklah Date: Wed, 29 Dec 2021 00:33:15 +0100 Subject: [PATCH] fix test --- tests/IssueSuppressionTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/IssueSuppressionTest.php b/tests/IssueSuppressionTest.php index 4ad0583d740..af47b953209 100644 --- a/tests/IssueSuppressionTest.php +++ b/tests/IssueSuppressionTest.php @@ -21,7 +21,7 @@ class IssueSuppressionTest extends TestCase public function setUp(): void { parent::setUp(); - $this->testConfig->find_unused_variables = true; + $this->project_analyzer->getCodebase()->find_unused_variables = true; } public function testIssueSuppressedOnFunction(): void @@ -219,7 +219,7 @@ class Foo { public string $bar = "baz"; } - $foo = new Foo(); + $_foo = new Foo(); ' ); @@ -241,7 +241,7 @@ class Foo { public string $bar = "baz"; } - $foo = new Foo(); + $_foo = new Foo(); ' ); @@ -311,7 +311,7 @@ function foo() : void { * @psalm-suppress TooManyArguments * here */ - strlen("a", "b"); + echo strlen("a", "b"); }', ], 'suppressUndefinedFunction' => [ @@ -326,14 +326,14 @@ function verify_return_type(): DateTime { 'suppressAllStatementIssues' => [ ' [ ' [