parse(); $this->assertTrue($result); $errors = $parser->get_errors(); $this->assertEquals(count($errors), 3); $this->assertEquals($errors[0]->get_line(), 1); $this->assertEquals($errors[0]->get_skipped_content(), ';'); $this->assertEquals($errors[1]->get_line(), 3); $this->assertEquals($errors[1]->get_skipped_content(), 'somestufff;'); $this->assertEquals($errors[2]->get_line(), 4); $this->assertEquals($errors[2]->get_skipped_content(), '15em;'); } } ?>