diff --git a/composer.json b/composer.json index 3e786433..abceb834 100755 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "description" : "XML APIs for the XP Framework", "keywords": ["module", "xp"], "require" : { - "xp-framework/core": "^12.0 | ^11.0 | ^10.0", + "xp-framework/core": "^12.11 | ^11.11", "xp-framework/collections": "^10.0 | ^9.0 | ^8.0", "xp-framework/reflection": "^3.1", "php" : ">=7.4.0" diff --git a/src/main/php/xml/DomXSLProcessor.class.php b/src/main/php/xml/DomXSLProcessor.class.php index 1fa8a02c..b845908a 100755 --- a/src/main/php/xml/DomXSLProcessor.class.php +++ b/src/main/php/xml/DomXSLProcessor.class.php @@ -1,6 +1,6 @@ _base.urldecode($file))) - throw new FileNotFoundException($this->_base.$file.' not found'); + throw new NotFound($this->_base.$file.' not found'); libxml_get_last_error() && libxml_clear_errors(); @@ -157,7 +157,7 @@ public function setXSLTree(Tree $xsl) { */ public function setXMLFile($file) { if (!file_exists($this->_base.urldecode($file))) { - throw new FileNotFoundException($this->_base.$file.' not found'); + throw new NotFound($this->_base.$file.' not found'); } libxml_get_last_error() && libxml_clear_errors(); diff --git a/src/test/php/xml/unittest/AbstractProcessorTest.class.php b/src/test/php/xml/unittest/AbstractProcessorTest.class.php index 06eefddd..63b302c4 100755 --- a/src/test/php/xml/unittest/AbstractProcessorTest.class.php +++ b/src/test/php/xml/unittest/AbstractProcessorTest.class.php @@ -1,6 +1,6 @@ xmlDeclaration= 'processorCharset().'"?>'; } - #[Test, Expect(FileNotFoundException::class)] + #[Test, Expect(NotFound::class)] public function setNonExistantXMLFile() { $this->processor->setXMLFile(':does-no-exist:'); } @@ -106,7 +106,7 @@ public function setMalformedXMLBuf() { $this->processor->setXMLBuf('this-is-not-valid'); } - #[Test, Expect(FileNotFoundException::class)] + #[Test, Expect(NotFound::class)] public function setNonExistantXSLFile() { $this->processor->setXSLFile(':does-no-exist:'); } diff --git a/src/test/php/xml/unittest/DomXslProcessorTest.class.php b/src/test/php/xml/unittest/DomXslProcessorTest.class.php index 08c58fa8..14c958ab 100755 --- a/src/test/php/xml/unittest/DomXslProcessorTest.class.php +++ b/src/test/php/xml/unittest/DomXslProcessorTest.class.php @@ -1,6 +1,5 @@