eZ\Publish\Core\FieldType\Tests\RichTextTest::providerForTestValidate PHP Method

providerForTestValidate() public method

    public function providerForTestValidate()
    {
        return array(array('<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0">
  <h1>This is a heading.</h1>
</section>', array(new ValidationError("Validation of XML content failed:\n" . 'Error in 3:0: Element section has extra content: h1'))), array('<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <title>This is a heading.</title>
</section>', array(new ValidationError("Validation of XML content failed:\n" . "/*[local-name()='section' and namespace-uri()='http://docbook.org/ns/docbook']: The root element must have a version attribute."))));
    }