Add API testing scripts

This commit is contained in:
DariusIII
2015-12-15 14:30:16 +01:00
parent d873f8395d
commit d4a7a31576
7 changed files with 125 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
// Test the cache server connection.
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
use newznab\libraries\Cache;
try {
$cache = new Cache();
} catch (\Exception $error) {
exit($error->getMessage() . PHP_EOL);
}
print_r($cache->serverStatistics());