コード例 #1
0
 public function testListFoTrees()
 {
     $list = new DataTreeList('list');
     $list->addTree(new DataTreeElement('a', 'b'));
     $obtained = $this->sut->toStdObject($list);
     $this->assertEquals('b', $obtained->list[0]->a);
     $list->addTree(new DataTreeElement('a', 'b'));
     $obtained = $this->sut->toStdObject($list);
     $this->assertEquals('b', $obtained->list[1]->a);
 }
コード例 #2
0
 public final function toSoapVar(XMLProcessableInterface $message)
 {
     $stdObjectAdapter = new StdObjectAdapter();
     $soapVar = new \SoapVar($stdObjectAdapter->toStdObject($message), SOAP_ENC_OBJECT);
     return $soapVar;
 }