public function testSplitMultiMessage() { $multiEdi = file_get_contents(__DIR__ . "/../files/exampleMulti.edi"); $eddies = Reader::splitMultiMessage($multiEdi); $this->assertEquals(2, count($eddies)); $r = new Reader($eddies[0]); $messageType = $r->readUNHmessageType(); $this->assertEquals('PAORES', $messageType); $r = new Reader($eddies[1]); $messageType = $r->readUNHmessageType(); $this->assertEquals('PAORES', $messageType); }