Skip to content

Commit

Permalink
Failed and regression tests with creation of a list of issues
Browse files Browse the repository at this point in the history
Failed tests:
```
1) Psalm\Tests\MagicMethodAnnotationTest::testInvalidCodeWithIssues with data set "staticInvocationWithMagicMethodFoo"
UnexpectedValueException: Cannot get method params for A::foo

2) Psalm\Tests\MagicMethodAnnotationTest::testInvalidCodeWithIssues with data set "nonStaticSelfCallWithMagicMethodFoo"
UnexpectedValueException: Cannot get method params for B::foo
```
  • Loading branch information
issidorov committed Feb 13, 2024
1 parent d588b3d commit 9b6ef8b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/MagicMethodAnnotationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
use Psalm\Context;
use Psalm\Exception\CodeException;
use Psalm\Tests\Traits\InvalidCodeAnalysisTestTrait;
use Psalm\Tests\Traits\InvalidCodeAnalysisWithIssuesTestTrait;
use Psalm\Tests\Traits\ValidCodeAnalysisTestTrait;

use const DIRECTORY_SEPARATOR;

class MagicMethodAnnotationTest extends TestCase
{
use InvalidCodeAnalysisWithIssuesTestTrait;
use InvalidCodeAnalysisTestTrait;
use ValidCodeAnalysisTestTrait;

Expand Down
2 changes: 2 additions & 0 deletions tests/MagicPropertyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
use Psalm\Context;
use Psalm\Exception\CodeException;
use Psalm\Tests\Traits\InvalidCodeAnalysisTestTrait;
use Psalm\Tests\Traits\InvalidCodeAnalysisWithIssuesTestTrait;
use Psalm\Tests\Traits\ValidCodeAnalysisTestTrait;

use const DIRECTORY_SEPARATOR;

class MagicPropertyTest extends TestCase
{
use InvalidCodeAnalysisWithIssuesTestTrait;
use InvalidCodeAnalysisTestTrait;
use ValidCodeAnalysisTestTrait;

Expand Down
2 changes: 2 additions & 0 deletions tests/MethodCallTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

use Psalm\Context;
use Psalm\Tests\Traits\InvalidCodeAnalysisTestTrait;
use Psalm\Tests\Traits\InvalidCodeAnalysisWithIssuesTestTrait;
use Psalm\Tests\Traits\ValidCodeAnalysisTestTrait;

use const DIRECTORY_SEPARATOR;

class MethodCallTest extends TestCase
{
use InvalidCodeAnalysisWithIssuesTestTrait;
use InvalidCodeAnalysisTestTrait;
use ValidCodeAnalysisTestTrait;

Expand Down
2 changes: 2 additions & 0 deletions tests/MethodSignatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
use Psalm\Context;
use Psalm\Exception\CodeException;
use Psalm\Tests\Traits\InvalidCodeAnalysisTestTrait;
use Psalm\Tests\Traits\InvalidCodeAnalysisWithIssuesTestTrait;
use Psalm\Tests\Traits\ValidCodeAnalysisTestTrait;

use const DIRECTORY_SEPARATOR;

class MethodSignatureTest extends TestCase
{
use InvalidCodeAnalysisWithIssuesTestTrait;
use ValidCodeAnalysisTestTrait;
use InvalidCodeAnalysisTestTrait;

Expand Down
2 changes: 2 additions & 0 deletions tests/MixinAnnotationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
namespace Psalm\Tests;

use Psalm\Tests\Traits\InvalidCodeAnalysisTestTrait;
use Psalm\Tests\Traits\InvalidCodeAnalysisWithIssuesTestTrait;
use Psalm\Tests\Traits\ValidCodeAnalysisTestTrait;

class MixinAnnotationTest extends TestCase
{
use InvalidCodeAnalysisWithIssuesTestTrait;
use ValidCodeAnalysisTestTrait;
use InvalidCodeAnalysisTestTrait;

Expand Down

0 comments on commit 9b6ef8b

Please sign in to comment.