EDITest\InterpreterTest::testBAPLIE PHP Method

testBAPLIE() public method

public testBAPLIE ( )
    public function testBAPLIE()
    {
        $parser = new Parser(__DIR__ . "/../files/D95BBAPLIE.edi");
        $mapping = new \EDI\Mapping\MappingProvider('D95B');
        $analyser = new Analyser();
        $segs = $analyser->loadSegmentsXml($mapping->getSegments());
        $svc = $analyser->loadSegmentsXml($mapping->getServiceSegments(3));
        $interpreter = new Interpreter($mapping->getMessage('baplie'), $segs, $svc);
        $interpreter->prepare($parser->get());
        $this->assertCount(2, $interpreter->getMessages());
        $this->assertCount(1, $interpreter->getErrors());
        $this->assertCount(2, $interpreter->getServiceSegments());
        $this->assertEquals([[]], $interpreter->getErrors());
    }