aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/CardDAV/TestUtil.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/CardDAV/TestUtil.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/CardDAV/TestUtil.php31
1 files changed, 16 insertions, 15 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/CardDAV/TestUtil.php b/vendor/sabre/dav/tests/Sabre/CardDAV/TestUtil.php
index ec8a3501e..0bdf07df5 100644
--- a/vendor/sabre/dav/tests/Sabre/CardDAV/TestUtil.php
+++ b/vendor/sabre/dav/tests/Sabre/CardDAV/TestUtil.php
@@ -1,18 +1,20 @@
<?php
-namespace Sabre\CardDAV;
-
-class TestUtil {
+declare(strict_types=1);
- static function getBackend() {
+namespace Sabre\CardDAV;
+class TestUtil
+{
+ public static function getBackend()
+ {
$backend = new Backend\PDO(self::getSQLiteDB());
- return $backend;
+ return $backend;
}
- static function getSQLiteDB() {
-
+ public static function getSQLiteDB()
+ {
$pdo = Backend\PDOSqliteTest::getSQLite();
// Inserting events through a backend class.
@@ -21,7 +23,7 @@ class TestUtil {
'principals/user1',
'UUID-123467',
[
- '{DAV:}displayname' => 'user1 addressbook',
+ '{DAV:}displayname' => 'user1 addressbook',
'{urn:ietf:params:xml:ns:carddav}addressbook-description' => 'AddressBook description',
]
);
@@ -29,22 +31,23 @@ class TestUtil {
'principals/user1',
'UUID-123468',
[
- '{DAV:}displayname' => 'user1 addressbook2',
+ '{DAV:}displayname' => 'user1 addressbook2',
'{urn:ietf:params:xml:ns:carddav}addressbook-description' => 'AddressBook description',
]
);
$backend->createCard($addressbookId, 'UUID-2345', self::getTestCardData());
- return $pdo;
+ return $pdo;
}
- static function deleteSQLiteDB() {
+ public static function deleteSQLiteDB()
+ {
$sqliteTest = new Backend\PDOSqliteTest();
$pdo = $sqliteTest->tearDown();
}
- static function getTestCardData() {
-
+ public static function getTestCardData()
+ {
$addressbookData = 'BEGIN:VCARD
VERSION:3.0
PRODID:-//Acme Inc.//RoadRunner 1.0//EN
@@ -56,7 +59,5 @@ REV:2012-06-20T07:00:39+00:00
END:VCARD';
return $addressbookData;
-
}
-
}