Skip to content

Commit

Permalink
[EasyBankFiles] Fix phpstan in tests (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexndlm committed Mar 21, 2024
1 parent 3ebfc84 commit d8dd00d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/EasyBankFiles/tests/Parsers/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ abstract class TestCase extends BaseTestCase
{
/**
* Get mock for given class and set expectations based on given callable.
*
* @template T of object
*
* @param class-string<T> $class
*/
protected function getMockWithExpectations(string $class, callable $setExpectations): LegacyMockInterface
{
Expand Down
5 changes: 0 additions & 5 deletions quality/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ parameters:
path: %currentWorkingDirectory%/packages/EasyApiToken/src/External/FirebaseJwtDriver.php

# ---- EasyAsync ----
- message: '#Method EonX\\EasyAsync\\Tests\\AbstractTestCase::mock\(\) should return Mockery\\MockInterface but returns Mockery\\LegacyMockInterface.#'
path: %currentWorkingDirectory%/packages/EasyAsync/tests

# ---- EasyBankFiles ----
- message: '#Call to an undefined method object\:\:getTransactionCodeDetails\(\)#'
Expand Down Expand Up @@ -124,9 +122,6 @@ parameters:
- message: '#Call to an undefined method Illuminate\\Database\\Eloquent\\Model::find\(\).#'
path: %currentWorkingDirectory%/packages/EasyRepository/src/Implementations/Illuminate

- message: '#Method EonX\\EasyRepository\\Tests\\Implementation\\Illuminate\\EloquentRepositoryStub::getModel\(\) should return Illuminate\\Database\\Eloquent\\Model but returns Mockery\\LegacyMockInterface.#'
path: %currentWorkingDirectory%/packages/EasyRepository/tests/Implementation/Illuminate

- message: '#Parameter \#1 \$expected of static method PHPUnit\\Framework\\Assert::assertInstanceOf\(\) expects class-string<object>, string given.#'
path: %currentWorkingDirectory%/packages/EasyRepository/tests

Expand Down

0 comments on commit d8dd00d

Please sign in to comment.