Title: AssertMethodTypeSpecifyingExtension does not target the correct class · Issue #103 · phpstan/phpstan-phpunit · GitHub
Open Graph Title: AssertMethodTypeSpecifyingExtension does not target the correct class · Issue #103 · phpstan/phpstan-phpunit
X Title: AssertMethodTypeSpecifyingExtension does not target the correct class · Issue #103 · phpstan/phpstan-phpunit
Description: AssertMethodTypeSpecifyingExtension is narrowing types on TestCase but it should really operate on PHPUnit\Framework\Assert where the actual methods are implemented. The current codebase means that you can have a working assertSomething ...
Open Graph Description: AssertMethodTypeSpecifyingExtension is narrowing types on TestCase but it should really operate on PHPUnit\Framework\Assert where the actual methods are implemented. The current codebase means that...
X Description: AssertMethodTypeSpecifyingExtension is narrowing types on TestCase but it should really operate on PHPUnit\Framework\Assert where the actual methods are implemented. The current codebase means that...
Opengraph URL: https://github.com/phpstan/phpstan-phpunit/issues/103
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AssertMethodTypeSpecifyingExtension does not target the correct class","articleBody":"AssertMethodTypeSpecifyingExtension is [narrowing types on TestCase](https://github.com/phpstan/phpstan-phpunit/blob/master/src/Type/PHPUnit/Assert/AssertMethodTypeSpecifyingExtension.php#L27) but it should really operate on `PHPUnit\\Framework\\Assert` where the actual methods are implemented. \r\n \r\nThe current codebase means that you can have a working `assertSomething` method in your test case that breaks when you factorize it in a dedicated class (`class SomethingAsserter extends Assert`)","author":{"url":"https://github.com/nreynis","@type":"Person","name":"nreynis"},"datePublished":"2021-09-30T09:15:44Z","url":"https://github.com/phpstan/phpstan-phpunit/issues/103"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c17a5d93-0ecf-4165-e005-72224c287d74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B050:61A3E:1BEC47:261181:6B006627 |
| html-safe-nonce | 63954a8326d6b2895e5cc49aa4af1d6dc93278e1d5a882aac332942b1368d657 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDUwOjYxQTNFOjFCRUM0NzoyNjExODE6NkIwMDY2MjciLCJ2aXNpdG9yX2lkIjoiNTg1NDI5NjU1NjYxNzg4NTIyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2ee18975cc59aa3262120564aec7df4956c747626bca9baa0159167c65274e0d |
| hovercard-subject-tag | issue:1011929101 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpstan/phpstan-phpunit/103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8f88c64c1fcd2eae2a9348c9682804ce364d9ee0ebaaf019dc2594994cba806d/phpstan/phpstan-phpunit/issues/103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8f88c64c1fcd2eae2a9348c9682804ce364d9ee0ebaaf019dc2594994cba806d/phpstan/phpstan-phpunit/issues/103 |
| og:image:alt | AssertMethodTypeSpecifyingExtension is narrowing types on TestCase but it should really operate on PHPUnit\Framework\Assert where the actual methods are implemented. The current codebase means that... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nreynis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| turbo-cache-control | no-preview |
| go-import | github.com/phpstan/phpstan-phpunit git https://github.com/phpstan/phpstan-phpunit.git |
| octolytics-dimension-user_id | 16435710 |
| octolytics-dimension-user_login | phpstan |
| octolytics-dimension-repository_id | 105883921 |
| octolytics-dimension-repository_nwo | phpstan/phpstan-phpunit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105883921 |
| octolytics-dimension-repository_network_root_nwo | phpstan/phpstan-phpunit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width