Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

getMockFromWsdl does not handle namespaced class names #84

Closed
rrehbein opened this issue Feb 14, 2012 · 1 comment
Closed

getMockFromWsdl does not handle namespaced class names #84

rrehbein opened this issue Feb 14, 2012 · 1 comment

Comments

@rrehbein
Copy link

public function testNamespaceSingleEscape()
{
    $client = $this->getMockFromWsdl('..../sample.wsdl', 'My\\Test\\sampleWsdl');
    // actual: Reflection Exception, no constructor
    // expected: no error, $client be a mock
}
public function testNamespaceDoubleEscape()
{
    $client = $this->getMockFromWsdl('..../sample.wsdl', 'My\\\\Test\\\\sampleWsdl');
    // actual: Reflection Exception, class does not exist
    // expected: not really expecting this to work, but thought
    //    it was worth a shot after skimming the code
}
public function testPrefixedClassName()
{
    $client = $this->getMockFromWsdl('..../sample.wsdl', 'My_Test_sampleWsdl');
    // works fine
}
@edorian
Copy link
Sponsor Collaborator

edorian commented Mar 24, 2012

This "requires" PHP 5.3 so I put it into master to be released with phpunit 3.7

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

No branches or pull requests

2 participants