aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAV/TestPlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/DAV/TestPlugin.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/DAV/TestPlugin.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/DAV/TestPlugin.php b/vendor/sabre/dav/tests/Sabre/DAV/TestPlugin.php
deleted file mode 100644
index 3bfe3b3b0..000000000
--- a/vendor/sabre/dav/tests/Sabre/DAV/TestPlugin.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace Sabre\DAV;
-
-use Sabre\HTTP\RequestInterface;
-use Sabre\HTTP\ResponseInterface;
-
-class TestPlugin extends ServerPlugin
-{
- public $beforeMethod;
-
- public function getFeatures()
- {
- return ['drinking'];
- }
-
- public function getHTTPMethods($uri)
- {
- return ['BEER', 'WINE'];
- }
-
- public function initialize(Server $server)
- {
- $server->on('beforeMethod:*', [$this, 'beforeMethod']);
- }
-
- public function beforeMethod(RequestInterface $request, ResponseInterface $response)
- {
- $this->beforeMethod = $request->getMethod();
-
- return true;
- }
-}