summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Birth <markus@birth-online.de>2013-04-10 11:39:35 +0200
committerMarkus Birth <markus@birth-online.de>2013-04-10 11:39:35 +0200
commit58fc79ea37435fe7adbbad4314e1b3f442aad714 (patch)
tree221afd5e99b77ac750caf658c1a811163d5dfd7e /tests
parent60ee6710645c00209131b40074fa87d2c5f52a1b (diff)
downloadyafpp-58fc79ea37435fe7adbbad4314e1b3f442aad714.tar.gz
yafpp-58fc79ea37435fe7adbbad4314e1b3f442aad714.zip
Started parseable mod collection.
Diffstat (limited to 'tests')
-rw-r--r--tests/showmods.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/showmods.php b/tests/showmods.php
new file mode 100644
index 0000000..3408435
--- /dev/null
+++ b/tests/showmods.php
@@ -0,0 +1,9 @@
+<?php
+
+$mods = glob('../mods/*.json');
+
+foreach ($mods as $mod) {
+ $json = file_get_contents($mod);
+ $data = json_decode($json, true);
+ echo $mod . ': ' . $data['name'] . PHP_EOL;
+}