コード例 #1
0
ファイル: Reader.php プロジェクト: Grummfy/camt
 /**
  * @param $xmlNs
  * @return MessageFormatInterface
  * @throws ReaderException
  */
 private function getMessageFormatForXmlNs($xmlNs)
 {
     $messageFormats = $this->config->getMessageFormats();
     foreach ($messageFormats as $messageFormat) {
         if ($messageFormat->getXmlNs() === $xmlNs) {
             return $messageFormat;
         }
     }
     throw new ReaderException("Unsupported format, cannot find message format with xmlns {$xmlNs}");
 }
コード例 #2
0
ファイル: ReaderTest.php プロジェクト: genkgo/camt
 public function testReadFile()
 {
     $reader = new Reader(Config::getDefault());
     $message = $reader->readFile(__DIR__ . '/Camt053/Stubs/camt053.v2.minimal.xml');
     $this->assertInstanceOf(DTO\Message::class, $message);
 }
コード例 #3
0
ファイル: ReaderTest.php プロジェクト: Grummfy/camt
 public function testReadFile()
 {
     $reader = new Reader(Config::getDefault());
     $message = $reader->readFile(__DIR__ . '/Camt053/Stubs/camt053.minimal.xml');
     $this->assertInstanceOf('Genkgo\\Camt\\Camt053\\Message', $message);
 }