8 class XsdTest extends \PHPUnit\Framework\TestCase
29 $this->markTestSkipped(
'Skipped on HHVM. Will be fixed in MAGETWO-45033');
31 $this->urnResolver = new \Magento\Framework\Config\Dom\UrnResolver();
32 $this->_xsdSchema = $this->urnResolver->getRealPath(
'urn:magento:framework:Indexer/etc/indexer.xsd');
33 $this->_xsdValidator = new \Magento\Framework\TestFramework\Unit\Utility\XsdValidator();
43 $actualError = $this->_xsdValidator->validate(
44 $this->urnResolver->getRealPath(
'urn:magento:framework:Indexer/etc/indexer_merged.xsd'),
47 $this->assertEquals($expectedError, $actualError);
53 $actualResult = $this->_xsdValidator->validate($this->_xsdSchema, $xmlString);
55 $this->assertEmpty($actualResult);
63 return include
__DIR__ .
'/_files/invalidIndexerXmlArray.php';
testSchemaCorrectlyIdentifiesInvalidXml($xmlString, $expectedError)
defined('TESTS_BP')||define('TESTS_BP' __DIR__
schemaCorrectlyIdentifiesInvalidXmlDataProvider()
testSchemaCorrectlyIdentifiesValidXml()