From 9401bacb6378ef72a8076cb45b45f27e91826a68 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 15 Sep 2024 11:27:39 +0200 Subject: [PATCH] Add unit-test for element registry --- tests/XML/ElementRegistryTest.php | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/XML/ElementRegistryTest.php diff --git a/tests/XML/ElementRegistryTest.php b/tests/XML/ElementRegistryTest.php new file mode 100644 index 00000000..293d069a --- /dev/null +++ b/tests/XML/ElementRegistryTest.php @@ -0,0 +1,37 @@ + $elements) { + foreach ($elements as $localName => $fqdn) { + $this->assertTrue(class_exists($fqdn), sprintf('Class \'%s\' could not be found.', $fqdn)); + $this->assertEquals($fqdn::getLocalName(), $localName); + $this->assertEquals($fqdn::getNamespaceURI(), $namespaceURI); + } + } + } +}