GetMockFromWsdl incorrectly caches the WSDL #91

ciaranmcnulty opened this Issue Jul 12, 2012 · 1 comment


None yet

2 participants


If a user calls PHPUnit_Framework_Testcase::getMockFromWsdl() they may get a mock generated from an old version of the WSDL file. This causes issues when the WSDL is in active development alongside the current code.

This calls PHPUnit_Framework_MockObject_Generator::generateClassFromWsdl() without populating the $options parameter, so when the generator does new SoapClient($wsdl, $options) it is not sending any sensible value for the cache_wsdl option.

I think even if this option isn't made user-settable, it should default to not caching.


See #124.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment