function getServiceContent() { if (!$this->serviceContent) { $this->serviceContent = $this->makeSoapCall('RetrieveServiceContent', \Vmwarephp\Factory\SoapMessage::makeForServiceInstance()); } return $this->serviceContent; }
function getServiceContent() { require_once 'TypeDefinitions.inc'; if (!$this->serviceContent) { $this->serviceContent = $this->makeSoapCall('RetrieveServiceContent', \Vmwarephp\Factory\SoapMessage::makeForServiceInstance()); } return $this->serviceContent; }
private function stubServiceContent($hash) { $serviceContent = new \ServiceContent(); foreach ($hash as $key => $value) { $serviceContent->{$key} = $value; } $this->vmwareSoapClient->expects($this->any())->method('RetrieveServiceContent')->with(\Vmwarephp\Factory\SoapMessage::makeForServiceInstance())->will($this->returnValue(new \RetrieveServiceContentResponse($serviceContent))); }
function testItMakesAMessageForGettingTheServiceInstance() { $expectedMessage = array('_this' => new \SoapVar('ServiceInstance', XSD_STRING, 'ServiceInstance')); $this->assertEquals($expectedMessage, \Vmwarephp\Factory\SoapMessage::makeForServiceInstance()); }
/** * @return mixed * @throws Exception\Soap */ public function getServiceContent() { if (!$this->serviceContent) { $this->serviceContent = $this->makeSoapCall('RetrieveServiceContent', SoapMessage::makeForServiceInstance()); } return $this->serviceContent; }