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

getMockFromWsdl does not handle namespaced class names #84

@rrehbein

Description

@rrehbein
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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions