diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-12-19 23:18:09 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-12-19 23:18:09 +0400 |
commit | 1c340444a43d76c388153059aefd24276d8347a9 (patch) | |
tree | 5ce6a7c7c9feeb9cf6e1e793d7d742af709ed5be /lib/private/fileproxy.php | |
parent | 526e8730733f1ac1be76deacf2e45fba37f6fbb8 (diff) |
Added test cleanup listener to detect untidy tests
After each test suite, detects whether there are stray datafiles, hooks
or proxies, then show a warning and clear them.
Diffstat (limited to 'lib/private/fileproxy.php')
-rw-r--r-- | lib/private/fileproxy.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/fileproxy.php b/lib/private/fileproxy.php index 52ec79b4bdb..2997aaf81b6 100644 --- a/lib/private/fileproxy.php +++ b/lib/private/fileproxy.php @@ -67,7 +67,11 @@ class OC_FileProxy{ self::$proxies[]=$proxy; } - public static function getProxies($operation) { + public static function getProxies($operation = null) { + if ($operation === null) { + // return all + return self::$proxies; + } $proxies=array(); foreach(self::$proxies as $proxy) { if(method_exists($proxy, $operation)) { |