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);
 }
Exemplo n.º 2
0
 public final function toSoapVar(XMLProcessableInterface $message)
 {
     $stdObjectAdapter = new StdObjectAdapter();
     $soapVar = new \SoapVar($stdObjectAdapter->toStdObject($message), SOAP_ENC_OBJECT);
     return $soapVar;
 }