public function testGetText()
 {
     $snippetChunks = [new SnippetChunk(new Snippet('test', 'value')), new SnippetChunk(new Snippet('cdata', '<tag>ok</tag>', true))];
     $receiversChunk = new ReceiversChunk($snippetChunks);
     $text = $receiversChunk->getText();
     $this->assertRegExp('~<Name>test</Name>[\\s]+<Value>value</Value>~', $text);
     $this->assertRegExp('~<Name>cdata</Name>[\\s]+<Value>[\\s\\S]+CDATA[\\s\\S]+<tag>ok</tag>[\\s\\S]+</Value>~', $text);
 }
 public function testGetText()
 {
     $receiverChunks = [new ReceiverChunk(new Receiver('*****@*****.**')), new ReceiverChunk(new Receiver(null, 100)), new ReceiverChunk(new Receiver('*****@*****.**', 200))];
     $receiversChunk = new ReceiversChunk($receiverChunks);
     $text = $receiversChunk->getText();
     $this->assertRegExp('~<Id>100</Id>~', $text);
     $this->assertRegExp('~<Email>simple@email.com</Email>~', $text);
     $this->assertRegExp('~<Id>200</Id>[\\s]+<Email>another@email.com</Email>~', $text);
 }