Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Dec 28, 2021
1 parent bf883be commit 42494f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/IssueSuppressionTest.php
Expand Up @@ -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
Expand Down Expand Up @@ -219,7 +219,7 @@ class Foo {
public string $bar = "baz";
}
$foo = new Foo();
$_foo = new Foo();
'
);

Expand All @@ -241,7 +241,7 @@ class Foo {
public string $bar = "baz";
}
$foo = new Foo();
$_foo = new Foo();
'
);

Expand Down Expand Up @@ -311,7 +311,7 @@ function foo() : void {
* @psalm-suppress TooManyArguments
* here
*/
strlen("a", "b");
echo strlen("a", "b");
}',
],
'suppressUndefinedFunction' => [
Expand All @@ -326,14 +326,14 @@ function verify_return_type(): DateTime {
'suppressAllStatementIssues' => [
'<?php
/** @psalm-suppress all */
strlen(123, 456, 789);',
echo strlen(123, 456, 789);',
],
'suppressAllFunctionIssues' => [
'<?php
/** @psalm-suppress all */
function foo($a)
{
strlen(123, 456, 789);
echo strlen(123, 456, 789);
}',
],
'possiblyNullSuppressedAtClassLevel' => [
Expand Down

0 comments on commit 42494f5

Please sign in to comment.