summaryrefslogtreecommitdiffstats
path: root/test.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-04 19:33:45 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-04 19:33:45 +0200
commit9bb22968827d26f3e760b0722077b6c0299b6254 (patch)
treefc0e6881ffe59439d4297cd52496923d61ab8e25 /test.php
php-hoa-consistency: new package (wip)
Diffstat (limited to 'test.php')
-rw-r--r--test.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/test.php b/test.php
new file mode 100644
index 0000000..2af8ba4
--- /dev/null
+++ b/test.php
@@ -0,0 +1,27 @@
+<?php
+
+require '/usr/share/php/Hoa/Consistency/autoload.php';
+
+$nss = [
+ 'Hoa\\Consistency\\',
+ 'Hoa\\Event\\',
+ 'Hoa\\Exception\\',
+];
+foreach ($nss as $ns) {
+ echo "$ns: ";
+ print_r($fedoraHoaLoader->getBaseDirectories($ns));
+}
+$classes = [
+ '\\Hoa\\Consistency\\Xcallable',
+ '\\Hoa\\Event\\Listener',
+ '\\Hoa\\Exception\\Group',
+];
+foreach ($classes as $class) {
+ if (class_exists($class)) {
+ echo ".";
+ } else {
+ echo "\nMissing $class\n";
+ }
+}
+echo "\nDone\n";
+