public function testSetExtensions() { $config = new Config(); $config->setExtensions([new XmlSchema()]); $this->assertContainsOnlyInstancesOf(XmlSchema::class, $config->getExtensions()); }
/** * @param Xpath\Compiler $xpathCompiler * @return XmlNamespaceInterface[] */ private function getNamespaces($xpathCompiler) { $namespaces = [new Xsl\XslTransformations($xpathCompiler, $this->config), new Xpath\XmlPath(), new Schema\XmlSchema()]; return array_merge($namespaces, $this->config->getExtensions()); }