sebastianbergmann/phpunit — Issue #500: getMockFromWsdl does not handle namespaced class names
Author: rrehbeindoi
Created: 2012-02-14 15:25:13+00:00
State: open

```PHP
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
}
```