René's URL Explorer Experiment


Title: [WIP] Support for Prophecy by Jean85 · Pull Request #1 · phpstan/phpstan-phpunit · GitHub

Open Graph Title: [WIP] Support for Prophecy by Jean85 · Pull Request #1 · phpstan/phpstan-phpunit

X Title: [WIP] Support for Prophecy by Jean85 · Pull Request #1 · phpstan/phpstan-phpunit

Description: Reading phpstan/phpstan#134 and wanting to try PHPStan 0.9, I wanted to try to write the extension to make PHPStan and Prophecy work along. I'm not an expert on PHPStan internals, so I started working on this copypasting from the MockBuilder classes, and I reached a point where the reveal() method is no longer an issue for PHPStan! 🎉 Now, I need to tackle the issues reported when defining the expectation on a mock, and that's a lot trickier! Scenario: $mock = $this->prophesize(SUTClass::class); $mock->methodA(...) ->should...() ->will...(); Basically you can call on the mock any method of it's base class (ObjectProphecy) but also any method of the mocked class (methodA); the problem is that those methods will accept the same stuff defined bu the original signature OR TokenInterfaces from Prophecy, OR a mix of that.; also, it will return a MethodProphecy every time. How we should tackle this?

Open Graph Description: Reading phpstan/phpstan#134 and wanting to try PHPStan 0.9, I wanted to try to write the extension to make PHPStan and Prophecy work along. I'm not an expert on PHPStan internals, so I started ...

X Description: Reading phpstan/phpstan#134 and wanting to try PHPStan 0.9, I wanted to try to write the extension to make PHPStan and Prophecy work along. I'm not an expert on PHPStan internals, so I star...

Opengraph URL: https://github.com/phpstan/phpstan-phpunit/pull/1

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:58113c29-5e96-04f6-d875-b574f97e559f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB0C8:22F32B:4B8E00:6A1674:6B007450
html-safe-nonced596abb47ae42c57e490b9b900cb1286690a7a607fdc8e34d4f2279dddf15a30
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEM4OjIyRjMyQjo0QjhFMDA6NkExNjc0OjZCMDA3NDUwIiwidmlzaXRvcl9pZCI6IjU0NjU3MjgxNTQyMDEyNjI4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac00ced880f3d5d6e90c41bc7dd7347fe6453bcd44a9cddcccdb70e51349605010
hovercard-subject-tagpull_request:155548152
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/phpstan/phpstan-phpunit/pull/1/files
twitter:imagehttps://avatars.githubusercontent.com/u/6729988?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6729988?s=400&v=4
og:image:altReading phpstan/phpstan#134 and wanting to try PHPStan 0.9, I wanted to try to write the extension to make PHPStan and Prophecy work along. I'm not an expert on PHPStan internals, so I started ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/phpstan/phpstan-phpunit git https://github.com/phpstan/phpstan-phpunit.git
octolytics-dimension-user_id16435710
octolytics-dimension-user_loginphpstan
octolytics-dimension-repository_id105883921
octolytics-dimension-repository_nwophpstan/phpstan-phpunit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id105883921
octolytics-dimension-repository_network_root_nwophpstan/phpstan-phpunit
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84e563eb4b55f8fa102f325f117533cee9e3df4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/phpstan/phpstan-phpunit/pull/1/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-phpunit%2Fpull%2F1%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-phpunit%2Fpull%2F1%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=phpstan%2Fphpstan-phpunit
Reloadhttps://github.com/phpstan/phpstan-phpunit/pull/1/files
Reloadhttps://github.com/phpstan/phpstan-phpunit/pull/1/files
Reloadhttps://github.com/phpstan/phpstan-phpunit/pull/1/files
phpstanhttps://github.com/phpstan
phpstan-phpunithttps://github.com/phpstan/phpstan-phpunit
Codehttps://github.com/phpstan/phpstan-phpunit
Issues34 (34)https://github.com/phpstan/phpstan-phpunit/issues
Pull requests7 (7)https://github.com/phpstan/phpstan-phpunit/pulls
Actionshttps://github.com/phpstan/phpstan-phpunit/actions
Projectshttps://github.com/phpstan/phpstan-phpunit/projects
Security and qualityhttps://github.com/phpstan/phpstan-phpunit/security
Insightshttps://github.com/phpstan/phpstan-phpunit/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fphpstan%2Fphpstan-phpunit%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fphpstan%2Fphpstan-phpunit%2Fissues%2Fnew%2Fchoose
Jean85https://github.com/Jean85
phpstan:masterhttps://github.com/phpstan/phpstan-phpunit/tree/master
Conversation 2 https://github.com/phpstan/phpstan-phpunit/pull/1
Commits 4 https://github.com/phpstan/phpstan-phpunit/pull/1/commits
Checks 0 https://github.com/phpstan/phpstan-phpunit/pull/1/checks
Files changed https://github.com/phpstan/phpstan-phpunit/pull/1/files
Please reload this pagehttps://github.com/phpstan/phpstan-phpunit/pull/1/files
[WIP] Support for Prophecy https://github.com/phpstan/phpstan-phpunit/pull/1/files#top
Show all changes 4 commits https://github.com/phpstan/phpstan-phpunit/pull/1/files
0cdf661 Implement classes for Prophecy Jean85 Nov 29, 2017 https://github.com/phpstan/phpstan-phpunit/pull/1/commits/0cdf661f174c800c4c8008c2e4454316395ffad2
4ef610a Add dynamic extensions to the config Jean85 Nov 29, 2017 https://github.com/phpstan/phpstan-phpunit/pull/1/commits/4ef610a15a9d50fab4d458d7d1c7a6a7f9c57e1d
1e7f01d Fix getClass methods Jean85 Nov 30, 2017 https://github.com/phpstan/phpstan-phpunit/pull/1/commits/1e7f01dfcaa508c4dfb28d83b44495b229b5f090
e5446f8 Make prophesize->reveal sequence work Jean85 Nov 30, 2017 https://github.com/phpstan/phpstan-phpunit/pull/1/commits/e5446f835f72e513a53e9416633f1458d702089d
Clear filters https://github.com/phpstan/phpstan-phpunit/pull/1/files
Please reload this pagehttps://github.com/phpstan/phpstan-phpunit/pull/1/files
Please reload this pagehttps://github.com/phpstan/phpstan-phpunit/pull/1/files
extension.neon https://github.com/phpstan/phpstan-phpunit/pull/1/files#diff-c0eed1d1286633a549d491ece85cd721b01ea34037971a8f41cfa8cade5645b8
ObjectProphecyDynamicReturnTypeExtension.php https://github.com/phpstan/phpstan-phpunit/pull/1/files#diff-441ec809a8cdd1ad146f4885cf4d2737cb24967f8781a81abc25331ba964df29
ObjectProphecyType.php https://github.com/phpstan/phpstan-phpunit/pull/1/files#diff-f5979452529f1f488cc214de99897d0faa60c22b1b3a808df57f1fa6bb83d90d
ProphetDynamicReturnTypeExtension.php https://github.com/phpstan/phpstan-phpunit/pull/1/files#diff-8f4f297ab1351d7dac02ace4aaeae3f55df8a994170d6ba6f7410fca63c633a2
extension.neonhttps://github.com/phpstan/phpstan-phpunit/pull/1/files#diff-c0eed1d1286633a549d491ece85cd721b01ea34037971a8f41cfa8cade5645b8
View file https://github.com/phpstan/phpstan-phpunit/blob/e5446f835f72e513a53e9416633f1458d702089d/extension.neon
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpstan-phpunit/pull/1/{{ revealButtonHref }}
https://github.com/phpstan/phpstan-phpunit/pull/1/files#diff-c0eed1d1286633a549d491ece85cd721b01ea34037971a8f41cfa8cade5645b8
src/Type/Prophecy/ObjectProphecyDynamicReturnTypeExtension.phphttps://github.com/phpstan/phpstan-phpunit/pull/1/files#diff-441ec809a8cdd1ad146f4885cf4d2737cb24967f8781a81abc25331ba964df29
View file https://github.com/phpstan/phpstan-phpunit/blob/e5446f835f72e513a53e9416633f1458d702089d/src/Type/Prophecy/ObjectProphecyDynamicReturnTypeExtension.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpstan-phpunit/pull/1/{{ revealButtonHref }}
src/Type/Prophecy/ObjectProphecyType.phphttps://github.com/phpstan/phpstan-phpunit/pull/1/files#diff-f5979452529f1f488cc214de99897d0faa60c22b1b3a808df57f1fa6bb83d90d
View file https://github.com/phpstan/phpstan-phpunit/blob/e5446f835f72e513a53e9416633f1458d702089d/src/Type/Prophecy/ObjectProphecyType.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpstan-phpunit/pull/1/{{ revealButtonHref }}
src/Type/Prophecy/ProphetDynamicReturnTypeExtension.phphttps://github.com/phpstan/phpstan-phpunit/pull/1/files#diff-8f4f297ab1351d7dac02ace4aaeae3f55df8a994170d6ba6f7410fca63c633a2
View file https://github.com/phpstan/phpstan-phpunit/blob/e5446f835f72e513a53e9416633f1458d702089d/src/Type/Prophecy/ProphetDynamicReturnTypeExtension.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpstan-phpunit/pull/1/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.