Permalink
Browse files

Merge pull request #382 from alistairstead/master

Hi, Just a minor change to allow configuration of the SOAPClient
  • Loading branch information...
2 parents c77923f + 8c3ef88 commit 9c48beee5ec17c8f7493a09ce00dc53a622cad90 @whatthejeff whatthejeff committed Mar 8, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 PHPUnit/Framework/TestCase.php
@@ -1432,10 +1432,11 @@ public function getMockForAbstractClass($originalClassName, array $arguments = a
* @param string $mockClassName
* @param array $methods
* @param boolean $callOriginalConstructor
+ * @param array $options An array of options passed to SOAPClient::_construct
* @return PHPUnit_Framework_MockObject_MockObject
* @since Method available since Release 3.4.0
*/
- protected function getMockFromWsdl($wsdlFile, $originalClassName = '', $mockClassName = '', array $methods = array(), $callOriginalConstructor = TRUE)
+ protected function getMockFromWsdl($wsdlFile, $originalClassName = '', $mockClassName = '', array $methods = array(), $callOriginalConstructor = TRUE, array $options = array())
{
if ($originalClassName === '') {
$originalClassName = str_replace(
@@ -1446,15 +1447,15 @@ protected function getMockFromWsdl($wsdlFile, $originalClassName = '', $mockClas
if (!class_exists($originalClassName)) {
eval(
$this->mockObjectGenerator->generateClassFromWsdl(
- $wsdlFile, $originalClassName, $methods
+ $wsdlFile, $originalClassName, $methods, $options
)
);
}
return $this->getMock(
$originalClassName,
$methods,
- array('', array()),
+ array('', $options),
$mockClassName,
$callOriginalConstructor,
FALSE,

0 comments on commit 9c48bee

Please sign in to comment.