parse(); $this->assertTrue($result); $errors = $parser->get_errors(); $this->assertEquals(count($errors), 1); $this->assertEquals($errors[0]->get_line(), 1); $this->assertEquals($errors[0]->get_skipped_content(), 'foo;'); } } ?>