public function itShouldHandleXmlTextCollectionsProperly() { $request = new CollectionClass(); $request->list = array('one', 'two', 'three'); $xml = $this->marshaller->marshalToString($request); $this->assertXmlStringEqualsXmlString('<collection-class> <list>one</list> <list>two</list> <list>three</list> </collection-class>', $xml); $otherRequest = $this->marshaller->unmarshalFromString($xml); $this->assertEquals(3, count($otherRequest->list)); $this->assertContains('one', $otherRequest->list); $this->assertContains('two', $otherRequest->list); $this->assertContains('three', $otherRequest->list); }