Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EasyBankFiles] Fix phpstan in tests #1367

Merged
merged 6 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading