EDITest\ParserTest::testNotEscapedSegment PHP Метод

testNotEscapedSegment() публичный Метод

    public function testNotEscapedSegment()
    {
        $string = "EQD+CX?DU12?+3456+2?:0'";
        $expected = [["EQD", "CX?DU12+3456", "2:0"]];
        $p = new Parser($string);
        $result = $p->get();
        $experror = "There's a character not escaped with ? in the data; string CX?DU12?+3456";
        $error = $p->errors();
        $this->assertEquals($expected, $result);
        $this->assertContains($experror, $error);
    }