8 class XsdTest extends \PHPUnit\Framework\TestCase
24 $this->markTestSkipped(
'Skipped on HHVM. Will be fixed in MAGETWO-45033');
26 $urnResolver = new \Magento\Framework\Config\Dom\UrnResolver();
27 $this->_xsdSchema = $urnResolver->getRealPath(
'urn:magento:framework:Mview/etc/mview.xsd');
28 $this->_xsdValidator = new \Magento\Framework\TestFramework\Unit\Utility\XsdValidator();
38 $actualError = $this->_xsdValidator->validate($this->_xsdSchema, $xmlString);
39 $this->assertEquals($expectedError, $actualError);
45 $actualResult = $this->_xsdValidator->validate($this->_xsdSchema, $xmlString);
47 $this->assertEmpty($actualResult);
55 return include
__DIR__ .
'/_files/invalidMviewXmlArray.php';
defined('TESTS_BP')||define('TESTS_BP' __DIR__
testSchemaCorrectlyIdentifiesInvalidXml($xmlString, $expectedError)
testSchemaCorrectlyIdentifiesValidXml()
schemaCorrectlyIdentifiesInvalidXmlDataProvider()