summaryrefslogtreecommitdiff
path: root/test/cleanup.php
diff options
context:
space:
mode:
authorBrent Shaffer <bshafs@gmail.com>2014-08-28 06:13:42 +0400
committerBrent Shaffer <bshafs@gmail.com>2014-08-28 06:13:42 +0400
commit74fcc75e47614c1417c750e907a44567d9ceee1f (patch)
tree88b56d61f275dd284d9174705558aa90bf31b588 /test/cleanup.php
parenta7f02c9b7b4a18e54a71f93436aa4a6091f399a7 (diff)
parent6a30b9b67ae35c228e852109ed743bf34da22568 (diff)
downloadoauth2-server-php-1.5.tar.xz
Merge pull request #446 from bshaffer/developv1.5
Tag v1.5
Diffstat (limited to 'test/cleanup.php')
-rw-r--r--test/cleanup.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/cleanup.php b/test/cleanup.php
new file mode 100644
index 0000000..4042eb2
--- /dev/null
+++ b/test/cleanup.php
@@ -0,0 +1,15 @@
+<?php
+
+require_once(dirname(__FILE__).'/../src/OAuth2/Autoloader.php');
+OAuth2\Autoloader::register();
+
+// register test classes
+OAuth2\Autoloader::register(dirname(__FILE__).'/lib');
+
+// register vendors if possible
+if (file_exists(__DIR__.'/../vendor/autoload.php')) {
+ require_once(__DIR__.'/../vendor/autoload.php');
+}
+
+// remove the dynamoDB database that was created for this build
+OAuth2\Storage\Bootstrap::getInstance()->cleanupTravisDynamoDb(); \ No newline at end of file