René's URL Explorer Experiment


Title: getMockBuilder() should also work with non-existent classes by Majkl578 · Pull Request #28 · phpstan/phpstan-phpunit · GitHub

Open Graph Title: getMockBuilder() should also work with non-existent classes by Majkl578 · Pull Request #28 · phpstan/phpstan-phpunit

X Title: getMockBuilder() should also work with non-existent classes by Majkl578 · Pull Request #28 · phpstan/phpstan-phpunit

Description: TestCase::getMockBuilder() can be used with undefined classes as well. In this case, the mock system creates dummy empty class of the given name. This is used in Doctrine on some places, i.e. for testing event listeners that are based on naming, not interface. Without this patch, we were getting the following errors: ------ ---------------------------------------------------------------------------- Line tests/Doctrine/Tests/DBAL/ConnectionTest.php ------ ---------------------------------------------------------------------------- 144 Call to method expects() on an unknown class ConnectDispatchEventListener. ------ ---------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------- Line tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php ------ ------------------------------------------------------------------------------------- 349 Call to method expects() on an unknown class ListTableColumnsDispatchEventListener. 377 Call to method expects() on an unknown class ListTableIndexesDispatchEventListener. ------ ------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------- Line tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php ------ ------------------------------------------------------------------------------------- 372 Call to method expects() on an unknown class GetCreateTableSqlDispatchEvenListener. 375 Call to method expects() on an unknown class GetCreateTableSqlDispatchEvenListener. 396 Call to method expects() on an unknown class GetDropTableSqlDispatchEventListener. 421 Call to method expects() on an unknown class GetAlterTableSqlDispatchEvenListener. 424 Call to method expects() on an unknown class GetAlterTableSqlDispatchEvenListener. 427 Call to method expects() on an unknown class GetAlterTableSqlDispatchEvenListener. 430 Call to method expects() on an unknown class GetAlterTableSqlDispatchEvenListener. 433 Call to method expects() on an unknown class GetAlterTableSqlDispatchEvenListener. ------ ------------------------------------------------------------------------------------- No tests for Type\PHPUnit - how to add some?

Open Graph Description: TestCase::getMockBuilder() can be used with undefined classes as well. In this case, the mock system creates dummy empty class of the given name. This is used in Doctrine on some places, i.e. for t...

X Description: TestCase::getMockBuilder() can be used with undefined classes as well. In this case, the mock system creates dummy empty class of the given name. This is used in Doctrine on some places, i.e. for t...

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

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:47f51af5-0e07-4ef8-f6f2-9e18dddace74
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDEA6:1AEA15:581CA7:77BD36:6B00735F
html-safe-nonce90a75089079147af582b93527dbe5574560b837820380976ca0a193f48dc955f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUE2OjFBRUExNTo1ODFDQTc6NzdCRDM2OjZCMDA3MzVGIiwidmlzaXRvcl9pZCI6IjIxNjU0MzY0NjI3Njg2MTYyODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca2f237b2e4e77e2dca9b053ffb35d9e9459ad112a3b52b489cb18710b6c8c0c8
hovercard-subject-tagpull_request:209288494
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/28/files
twitter:imagehttps://avatars.githubusercontent.com/u/144181?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/144181?s=400&v=4
og:image:altTestCase::getMockBuilder() can be used with undefined classes as well. In this case, the mock system creates dummy empty class of the given name. This is used in Doctrine on some places, i.e. for t...
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
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/28/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-phpunit%2Fpull%2F28%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%2F28%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/28/files
Reloadhttps://github.com/phpstan/phpstan-phpunit/pull/28/files
Reloadhttps://github.com/phpstan/phpstan-phpunit/pull/28/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
Majkl578https://github.com/Majkl578
phpstan:1.1.xhttps://github.com/phpstan/phpstan-phpunit/tree/1.1.x
Majkl578:GetMockBuilderDynamicReturnTypeExtension-with-undefined-classhttps://github.com/Majkl578/phpstan-phpunit/tree/GetMockBuilderDynamicReturnTypeExtension-with-undefined-class
Conversation 7 https://github.com/phpstan/phpstan-phpunit/pull/28
Commits 1 https://github.com/phpstan/phpstan-phpunit/pull/28/commits
Checks 0 https://github.com/phpstan/phpstan-phpunit/pull/28/checks
Files changed https://github.com/phpstan/phpstan-phpunit/pull/28/files
Please reload this pagehttps://github.com/phpstan/phpstan-phpunit/pull/28/files
getMockBuilder() should also work with non-existent classes https://github.com/phpstan/phpstan-phpunit/pull/28/files#top
Show all changes 1 commit https://github.com/phpstan/phpstan-phpunit/pull/28/files
3c06d97 getMockBuilder() should also work with non-existent classes Majkl578 Aug 18, 2018 https://github.com/phpstan/phpstan-phpunit/pull/28/commits/3c06d9735432b3ec55bb6805bdd2433424287944
Clear filters https://github.com/phpstan/phpstan-phpunit/pull/28/files
Please reload this pagehttps://github.com/phpstan/phpstan-phpunit/pull/28/files
Please reload this pagehttps://github.com/phpstan/phpstan-phpunit/pull/28/files
src/Type/PHPUnit/GetMockBuilderDynamicReturnTypeExtension.phphttps://github.com/phpstan/phpstan-phpunit/pull/28/files#diff-4525510f2c751410d6fe6a6c0dff90205bbd33a89db06391ec11ac2e201e94c7
View file https://github.com/phpstan/phpstan-phpunit/blob/3c06d9735432b3ec55bb6805bdd2433424287944/src/Type/PHPUnit/GetMockBuilderDynamicReturnTypeExtension.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/phpstan/phpstan-phpunit/pull/28/{{ revealButtonHref }}
https://github.com/phpstan/phpstan-phpunit/pull/28/files#diff-4525510f2c751410d6fe6a6c0dff90205bbd33a89db06391ec11ac2e201e94c7
https://github.com/phpstan/phpstan-phpunit/pull/28/files#diff-4525510f2c751410d6fe6a6c0dff90205bbd33a89db06391ec11ac2e201e94c7
https://github.com/phpstan/phpstan-phpunit/pull/28/files#diff-4525510f2c751410d6fe6a6c0dff90205bbd33a89db06391ec11ac2e201e94c7
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.