EDITest\ParserTest::testCustomStripRegex PHP Method

testCustomStripRegex() public method

    public function testCustomStripRegex()
    {
        $p = new Parser();
        $p->setStripRegex("/[\\x{0001}-\\x{001F}\\x{0080}-\\x{00C0}]/");
        $string = "LOC+11+ITGOA'MEA+WT++KGM:9040'";
        $test = $p->loadString($string);
        $expected = array(array("LOC", "11", "ITGOA"), array("MEA", "WT", "", array("KGM", "9040")));
        $this->assertEquals($expected, $test);
    }