Codeception / Stub

Flexible Stub wrapper for PHPUnit's Mock Builder
MIT License
295 stars 17 forks source link

Static analysis support through @template #24

Closed ostrolucky closed 4 years ago

ostrolucky commented 4 years ago

Phpunit mocks have support for SA tools like Psalm/PHPStan since last year, thanks to https://github.com/sebastianbergmann/phpunit/pull/3708. Codeception mocks, however don't. I might contribute this. Is this something you would welcome?

ostrolucky commented 4 years ago

@Naktibalda can I contribute this?

Naktibalda commented 4 years ago

Do you mean @psalm-template ExpectedType comments? Seems fine to me, please raise the pull request.

ostrolucky commented 4 years ago

Done! Please see https://github.com/Codeception/Stub/pull/25