diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-04-04 19:33:45 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-04-04 19:33:45 +0200 |
commit | 9bb22968827d26f3e760b0722077b6c0299b6254 (patch) | |
tree | fc0e6881ffe59439d4297cd52496923d61ab8e25 /test.php |
php-hoa-consistency: new package (wip)
Diffstat (limited to 'test.php')
-rw-r--r-- | test.php | 27 |
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"; + |