public function testLoadItemDefinitionsReturnsXMLStringWithInStdClass() { $soapMock = $this->getMockFromWsdl(dirname(__FILE__) . '/ReportTest/ReportService2010.wsdl', 'SoapClientMockDefinitions'); $soapMock->expects($this->any())->method('getItemDefinition')->with($this->equalTo(array('ItemPath' => '/Reports/Managed Account Performance'))); $ssrs = new SSRS_Report('http://test/ReportServer'); $ssrs->setSoapService($soapMock); $result = $ssrs->getItemDefinition('/Reports/Managed Account Performance'); }