summaryrefslogtreecommitdiffstats
path: root/tests/lib/connector/sabre/requesttest/exceptionplugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/connector/sabre/requesttest/exceptionplugin.php')
-rw-r--r--tests/lib/connector/sabre/requesttest/exceptionplugin.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/lib/connector/sabre/requesttest/exceptionplugin.php b/tests/lib/connector/sabre/requesttest/exceptionplugin.php
deleted file mode 100644
index 2b9e5d6d46d..00000000000
--- a/tests/lib/connector/sabre/requesttest/exceptionplugin.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-/**
- * Copyright (c) 2015 Robin Appelman <icewind@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or
- * later.
- * See the COPYING-README file.
- */
-
-namespace Test\Connector\Sabre\RequestTest;
-
-use Sabre\DAV\Exception;
-
-class ExceptionPlugin extends \OC\Connector\Sabre\ExceptionLoggerPlugin {
- /**
- * @var \Exception[]
- */
- protected $exceptions = [];
-
- public function logException(\Exception $ex) {
- $exceptionClass = get_class($ex);
- if (!isset($this->nonFatalExceptions[$exceptionClass])) {
- $this->exceptions[] = $ex;
- }
- }
-
- /**
- * @return \Exception[]
- */
- public function getExceptions() {
- return $this->exceptions;
- }
-}