8 class XsdTest extends \PHPUnit\Framework\TestCase
19 $this->markTestSkipped(
'Skipped on HHVM. Will be fixed in MAGETWO-45033');
21 $dom = new \DOMDocument();
22 $dom->load(
__DIR__ .
"/_files/{$invalidXmlFile}");
25 libxml_use_internal_errors(
true);
28 libxml_use_internal_errors(
false);
30 if ($expectedErrorsQty > 0) {
33 $this->assertEquals($expectedErrorsQty, $errorsQty);
41 return [[
'view.xsd',
'view_invalid.xml', 8], [
'theme.xsd',
'theme_invalid.xml', 1]];
static validateDomDocument(\DOMDocument $dom, $schema, $errorFormat=self::ERROR_FORMAT_DEFAULT)
defined('TESTS_BP')||define('TESTS_BP' __DIR__
invalidXmlFileDataProvider()
testInvalidXmlFile($xsdFile, $invalidXmlFile, $expectedErrorsQty)