public function testDocumentVisitorNotices()
 {
     $xhtml = new ezcDocumentRst();
     $errors = $xhtml->validateFile(dirname(__FILE__) . '/files/rst/validation/visitor_warning.txt');
     $this->assertTrue($errors[0] instanceof ezcDocumentValidationError, 'Expected an array of ezcDocumentValidationError objects to be returned');
     $this->assertSame(1, count($errors), 'Expected three errors to be found in validated document.');
     $this->assertTrue($errors[0]->getOriginalError() instanceof ezcDocumentVisitException, 'Expected an array of ezcDocumentVisitException objects to be returned');
     $this->assertSame('Visitor error: Warning: \'Too few anonymous reference targets.\' in line 0 at position 0.', (string) $errors[0]);
 }