InterNations / http-mock

Mock HTTP requests on the server side in your PHP unit tests
http://www.internations.org
MIT License
391 stars 62 forks source link

Update http-mock to work with jeremeamia/SuperClosure v2 #12

Closed fizzka closed 9 years ago

fizzka commented 9 years ago

dependent lib jeremeamia/SuperClosure was updated to v2, and your code stopped to work(

PHP Fatal error: Class 'Jeremeamia\SuperClosure\SerializableClosure' not found in /work/www/tsw/vendor/internations/http-mock/src/InterNations/Component/HttpMock/Matcher/AbstractMatcher.php on line 32

acobster commented 9 years ago

Forked and working on this. PR coming soon.

You can try this workaround for now:

class_alias( 'SuperClosure\SerializableClosure', 'Jeremeamia\SuperClosure\SerializableClosure' );
acobster commented 9 years ago

Hmmm...was this addressed in https://github.com/InterNations/http-mock/commit/203f6ef1277ed61571e4026134261ea5db5c619e ?

lstrojny commented 9 years ago

Yep, 203f6ef1277ed61571e4026134261ea5db5c619e should resolve it.

oschwald commented 9 years ago

This hit me too. It'd be nice to do a release with this fix.