Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

GetMockFromWsdl incorrectly caches the WSDL #91

Closed
ciaranmcnulty opened this Issue · 1 comment

2 participants

Ciaran McNulty Sebastian Bergmann
Ciaran McNulty

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.

Sebastian Bergmann

See #124.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.