Skip to content

Return exception on Psr17FactoryDiscovery #129

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

Merged
merged 1 commit into from
Jan 3, 2019
Merged

Conversation

gmponos
Copy link
Contributor

@gmponos gmponos commented Jan 2, 2019

Exception must be returned check CI here florianv/exchanger#71

@gmponos gmponos changed the title Update Psr17FactoryDiscovery.php Return exception on Psr17FactoryDiscovery Jan 2, 2019
Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ouch. are we missing some tests?

@dbu dbu merged commit be7a6a0 into php-http:master Jan 3, 2019
@gmponos gmponos deleted the patch-1 branch January 3, 2019 07:35
@gmponos
Copy link
Contributor Author

gmponos commented Jan 3, 2019

ouch. are we missing some tests?

I guess.. I had intention of adding them once I find time...

@dbu
Copy link
Contributor

dbu commented Jan 3, 2019

glad if you can. testing the "nothing found" is a bit tricky as we would need a separate build run. maybe we can overwrite what classes to try to discover for a test that finds nothing?

@gmponos
Copy link
Contributor Author

gmponos commented Jan 3, 2019

as we would need a separate build run.

or use reflection on a test and handle by removing the classes from the property?

@dbu
Copy link
Contributor

dbu commented Jan 3, 2019

that sounds legit to me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants