summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-11 21:32:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-12 13:55:19 +0200
commit234b510652d117bb3ef9ef3b6315db3a2c2eb91b (patch)
tree880cec2bf4fe4846eff9fa5aa68d2671fb0495be /apps/dav
parent138f47a1b980aaceb116b256b8ccf14f523e7e67 (diff)
downloadnextcloud-server-234b510652d117bb3ef9ef3b6315db3a2c2eb91b.tar.gz
nextcloud-server-234b510652d117bb3ef9ef3b6315db3a2c2eb91b.zip
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/tests/unit/Avatars/AvatarHomeTest.php2
-rw-r--r--apps/dav/tests/unit/Avatars/AvatarNodeTest.php4
-rw-r--r--apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php4
-rw-r--r--apps/dav/tests/unit/BackgroundJob/GenerateBirthdayCalendarBackgroundJobTest.php4
-rw-r--r--apps/dav/tests/unit/BackgroundJob/RegisterRegenerateBirthdayCalendarsTest.php8
-rw-r--r--apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php6
-rw-r--r--apps/dav/tests/unit/CalDAV/AbstractCalDavBackend.php8
-rw-r--r--apps/dav/tests/unit/CalDAV/Activity/Filter/CalendarTest.php4
-rw-r--r--apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php4
-rw-r--r--apps/dav/tests/unit/CalDAV/BirthdayCalendar/EnablePluginTest.php6
-rw-r--r--apps/dav/tests/unit/CalDAV/CalDavBackendTest.php4
-rw-r--r--apps/dav/tests/unit/CalDAV/CalendarHomeTest.php8
-rw-r--r--apps/dav/tests/unit/CalDAV/CalendarImplTest.php4
-rw-r--r--apps/dav/tests/unit/CalDAV/CalendarManagerTest.php8
-rw-r--r--apps/dav/tests/unit/CalDAV/CalendarTest.php18
-rw-r--r--apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php6
-rw-r--r--apps/dav/tests/unit/CalDAV/PublicCalendarTest.php8
-rw-r--r--apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php6
-rw-r--r--apps/dav/tests/unit/CalDAV/ResourceBooking/AbstractPrincipalBackendTest.php8
-rw-r--r--apps/dav/tests/unit/CardDAV/AddressBookImplTest.php16
-rw-r--r--apps/dav/tests/unit/CardDAV/AddressBookTest.php12
-rw-r--r--apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php16
-rw-r--r--apps/dav/tests/unit/CardDAV/CardDavBackendTest.php10
-rw-r--r--apps/dav/tests/unit/CardDAV/ContactsManagerTest.php4
-rw-r--r--apps/dav/tests/unit/CardDAV/ConverterTest.php5
-rw-r--r--apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php10
-rw-r--r--apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php4
-rw-r--r--apps/dav/tests/unit/CardDAV/SyncServiceTest.php14
-rw-r--r--apps/dav/tests/unit/Command/MoveCalendarTest.php8
-rw-r--r--apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php4
-rw-r--r--apps/dav/tests/unit/Comments/CommentsNodeTest.php2
-rw-r--r--apps/dav/tests/unit/Comments/EntityCollectionTest.php10
-rw-r--r--apps/dav/tests/unit/Comments/EntityTypeCollectionTest.php12
-rw-r--r--apps/dav/tests/unit/Comments/RootCollectionTest.php26
-rw-r--r--apps/dav/tests/unit/Connector/PublicAuthTest.php6
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/BearerAuthTest.php10
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php9
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php4
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php3
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/FileTest.php24
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php28
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php26
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php14
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php4
-rw-r--r--apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php14
-rw-r--r--apps/dav/tests/unit/Controller/DirectControllerTest.php10
-rw-r--r--apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php8
-rw-r--r--apps/dav/tests/unit/DAV/BrowserErrorPagePluginTest.php5
-rw-r--r--apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php6
-rw-r--r--apps/dav/tests/unit/DAV/GroupPrincipalTest.php10
-rw-r--r--apps/dav/tests/unit/DAV/HookManagerTest.php34
-rw-r--r--apps/dav/tests/unit/DAV/Sharing/PluginTest.php4
-rw-r--r--apps/dav/tests/unit/Direct/DirectFileTest.php6
-rw-r--r--apps/dav/tests/unit/Direct/DirectHomeTest.php8
-rw-r--r--apps/dav/tests/unit/Files/FileSearchBackendTest.php12
-rw-r--r--apps/dav/tests/unit/Files/Sharing/FilesDropPluginTest.php8
-rw-r--r--apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php18
-rw-r--r--apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php4
-rw-r--r--apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php4
-rw-r--r--apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php8
-rw-r--r--apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningPluginTest.php16
-rw-r--r--apps/dav/tests/unit/ServerTest.php2
-rw-r--r--apps/dav/tests/unit/Settings/CalDAVSettingsTest.php2
-rw-r--r--apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php10
-rw-r--r--apps/dav/tests/unit/Upload/ChunkingPluginTest.php8
65 files changed, 297 insertions, 301 deletions
diff --git a/apps/dav/tests/unit/Avatars/AvatarHomeTest.php b/apps/dav/tests/unit/Avatars/AvatarHomeTest.php
index cce30d75fd2..8a0e9a2d026 100644
--- a/apps/dav/tests/unit/Avatars/AvatarHomeTest.php
+++ b/apps/dav/tests/unit/Avatars/AvatarHomeTest.php
@@ -37,7 +37,7 @@ class AvatarHomeTest extends TestCase {
/** @var AvatarHome */
private $home;
- /** @var IAvatarManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IAvatarManager | \PHPUnit\Framework\MockObject\MockObject */
private $avatarManager;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Avatars/AvatarNodeTest.php b/apps/dav/tests/unit/Avatars/AvatarNodeTest.php
index de81e903667..d47e6d167f0 100644
--- a/apps/dav/tests/unit/Avatars/AvatarNodeTest.php
+++ b/apps/dav/tests/unit/Avatars/AvatarNodeTest.php
@@ -28,14 +28,14 @@ use Test\TestCase;
class AvatarNodeTest extends TestCase {
public function testGetName() {
- /** @var IAvatar | \PHPUnit_Framework_MockObject_MockObject $a */
+ /** @var IAvatar | \PHPUnit\Framework\MockObject\MockObject $a */
$a = $this->createMock(IAvatar::class);
$n = new AvatarNode(1024, 'png', $a);
$this->assertEquals('1024.png', $n->getName());
}
public function testGetContentType() {
- /** @var IAvatar | \PHPUnit_Framework_MockObject_MockObject $a */
+ /** @var IAvatar | \PHPUnit\Framework\MockObject\MockObject $a */
$a = $this->createMock(IAvatar::class);
$n = new AvatarNode(1024, 'png', $a);
$this->assertEquals('image/png', $n->getContentType());
diff --git a/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php b/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php
index e97ef8adfda..b5e849b6f51 100644
--- a/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php
+++ b/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php
@@ -37,10 +37,10 @@ use Test\TestCase;
class CleanupInvitationTokenJobTest extends TestCase {
- /** @var IDBConnection | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IDBConnection | \PHPUnit\Framework\MockObject\MockObject */
private $dbConnection;
- /** @var ITimeFactory | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var ITimeFactory | \PHPUnit\Framework\MockObject\MockObject */
private $timeFactory;
/** @var \OCA\DAV\BackgroundJob\GenerateBirthdayCalendarBackgroundJob */
diff --git a/apps/dav/tests/unit/BackgroundJob/GenerateBirthdayCalendarBackgroundJobTest.php b/apps/dav/tests/unit/BackgroundJob/GenerateBirthdayCalendarBackgroundJobTest.php
index 2bd142fb086..f80518bed65 100644
--- a/apps/dav/tests/unit/BackgroundJob/GenerateBirthdayCalendarBackgroundJobTest.php
+++ b/apps/dav/tests/unit/BackgroundJob/GenerateBirthdayCalendarBackgroundJobTest.php
@@ -32,10 +32,10 @@ use Test\TestCase;
class GenerateBirthdayCalendarBackgroundJobTest extends TestCase {
- /** @var BirthdayService | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var BirthdayService | \PHPUnit\Framework\MockObject\MockObject */
private $birthdayService;
- /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */
private $config;
/** @var \OCA\DAV\BackgroundJob\GenerateBirthdayCalendarBackgroundJob */
diff --git a/apps/dav/tests/unit/BackgroundJob/RegisterRegenerateBirthdayCalendarsTest.php b/apps/dav/tests/unit/BackgroundJob/RegisterRegenerateBirthdayCalendarsTest.php
index b7d907e5ce5..a36df7d710a 100644
--- a/apps/dav/tests/unit/BackgroundJob/RegisterRegenerateBirthdayCalendarsTest.php
+++ b/apps/dav/tests/unit/BackgroundJob/RegisterRegenerateBirthdayCalendarsTest.php
@@ -36,16 +36,16 @@ use Test\TestCase;
class RegisterRegenerateBirthdayCalendarsTest extends TestCase {
- /** @var ITimeFactory | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var ITimeFactory | \PHPUnit\Framework\MockObject\MockObject */
private $time;
- /** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager | \PHPUnit\Framework\MockObject\MockObject */
private $userManager;
- /** @var IJobList | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IJobList | \PHPUnit\Framework\MockObject\MockObject */
private $jobList;
- /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */
private $config;
/** @var RegisterRegenerateBirthdayCalendars */
diff --git a/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php b/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php
index cc960b4e5d2..7c099f07362 100644
--- a/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php
+++ b/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php
@@ -42,13 +42,13 @@ class UpdateCalendarResourcesRoomsBackgroundJobTest extends TestCase {
/** @var UpdateCalendarResourcesRoomsBackgroundJob */
private $backgroundJob;
- /** @var IResourceManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IResourceManager | \PHPUnit\Framework\MockObject\MockObject */
private $resourceManager;
- /** @var IRoomManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRoomManager | \PHPUnit\Framework\MockObject\MockObject */
private $roomManager;
- /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var CalDavBackend | \PHPUnit\Framework\MockObject\MockObject */
private $calDavBackend;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/CalDAV/AbstractCalDavBackend.php b/apps/dav/tests/unit/CalDAV/AbstractCalDavBackend.php
index 79da92148af..c7371761266 100644
--- a/apps/dav/tests/unit/CalDAV/AbstractCalDavBackend.php
+++ b/apps/dav/tests/unit/CalDAV/AbstractCalDavBackend.php
@@ -55,13 +55,13 @@ abstract class AbstractCalDavBackend extends TestCase {
/** @var CalDavBackend */
protected $backend;
- /** @var Principal | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var Principal | \PHPUnit\Framework\MockObject\MockObject */
protected $principal;
- /** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */
protected $userManager;
- /** @var IGroupManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IGroupManager|\PHPUnit\Framework\MockObject\MockObject */
protected $groupManager;
- /** @var EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var EventDispatcherInterface|\PHPUnit\Framework\MockObject\MockObject */
protected $dispatcher;
/** @var ISecureRandom */
diff --git a/apps/dav/tests/unit/CalDAV/Activity/Filter/CalendarTest.php b/apps/dav/tests/unit/CalDAV/Activity/Filter/CalendarTest.php
index 1e0fbe7b984..d5023ac91c5 100644
--- a/apps/dav/tests/unit/CalDAV/Activity/Filter/CalendarTest.php
+++ b/apps/dav/tests/unit/CalDAV/Activity/Filter/CalendarTest.php
@@ -34,10 +34,10 @@ use Test\TestCase;
class CalendarTest extends TestCase {
- /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IURLGenerator|\PHPUnit\Framework\MockObject\MockObject */
protected $url;
- /** @var IFilter|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IFilter|\PHPUnit\Framework\MockObject\MockObject */
protected $filter;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php b/apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php
index a44c9b5abbf..0462928eef2 100644
--- a/apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php
+++ b/apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php
@@ -33,10 +33,10 @@ use Test\TestCase;
class TodoTest extends TestCase {
- /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IURLGenerator|\PHPUnit\Framework\MockObject\MockObject */
protected $url;
- /** @var IFilter|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IFilter|\PHPUnit\Framework\MockObject\MockObject */
protected $filter;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/CalDAV/BirthdayCalendar/EnablePluginTest.php b/apps/dav/tests/unit/CalDAV/BirthdayCalendar/EnablePluginTest.php
index 645eaa8b2f8..0f4b64fc727 100644
--- a/apps/dav/tests/unit/CalDAV/BirthdayCalendar/EnablePluginTest.php
+++ b/apps/dav/tests/unit/CalDAV/BirthdayCalendar/EnablePluginTest.php
@@ -34,13 +34,13 @@ use Test\TestCase;
class EnablePluginTest extends TestCase {
- /** @var \Sabre\DAV\Server|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \Sabre\DAV\Server|\PHPUnit\Framework\MockObject\MockObject */
protected $server;
- /** @var \OCP\IConfig|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\IConfig|\PHPUnit\Framework\MockObject\MockObject */
protected $config;
- /** @var BirthdayService |\PHPUnit_Framework_MockObject_MockObject */
+ /** @var BirthdayService |\PHPUnit\Framework\MockObject\MockObject */
protected $birthdayService;
/** @var \OCA\DAV\CalDAV\BirthdayCalendar\EnablePlugin $plugin */
diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
index 4e343340f25..ee08719f9bc 100644
--- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
+++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
@@ -125,7 +125,7 @@ class CalDavBackendTest extends AbstractCalDavBackend {
*/
public function testCalendarSharing($userCanRead, $userCanWrite, $groupCanRead, $groupCanWrite, $add) {
- /** @var IL10N|\PHPUnit_Framework_MockObject_MockObject $l10n */
+ /** @var IL10N|\PHPUnit\Framework\MockObject\MockObject $l10n */
$l10n = $this->createMock(IL10N::class);
$l10n
->expects($this->any())
@@ -506,7 +506,7 @@ EOD;
$calendarInfo = $this->backend->getCalendarsForUser(self::UNIT_TEST_USER)[0];
- /** @var IL10N|\PHPUnit_Framework_MockObject_MockObject $l10n */
+ /** @var IL10N|\PHPUnit\Framework\MockObject\MockObject $l10n */
$l10n = $this->createMock(IL10N::class);
$config = $this->createMock(IConfig::class);
diff --git a/apps/dav/tests/unit/CalDAV/CalendarHomeTest.php b/apps/dav/tests/unit/CalDAV/CalendarHomeTest.php
index 6f35b09014a..d78f2a54cd8 100644
--- a/apps/dav/tests/unit/CalDAV/CalendarHomeTest.php
+++ b/apps/dav/tests/unit/CalDAV/CalendarHomeTest.php
@@ -37,7 +37,7 @@ use Test\TestCase;
class CalendarHomeTest extends TestCase {
- /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var CalDavBackend | \PHPUnit\Framework\MockObject\MockObject */
private $backend;
/** @var array */
@@ -69,7 +69,7 @@ class CalendarHomeTest extends TestCase {
}
public function testCreateCalendarValidName() {
- /** @var MkCol | \PHPUnit_Framework_MockObject_MockObject $mkCol */
+ /** @var MkCol | \PHPUnit\Framework\MockObject\MockObject $mkCol */
$mkCol = $this->createMock(MkCol::class);
$mkCol->method('getResourceType')
@@ -89,7 +89,7 @@ class CalendarHomeTest extends TestCase {
$this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class);
$this->expectExceptionMessage('The resource you tried to create has a reserved name');
- /** @var MkCol | \PHPUnit_Framework_MockObject_MockObject $mkCol */
+ /** @var MkCol | \PHPUnit\Framework\MockObject\MockObject $mkCol */
$mkCol = $this->createMock(MkCol::class);
$this->calendarHome->createExtendedCollection('contact_birthdays', $mkCol);
@@ -99,7 +99,7 @@ class CalendarHomeTest extends TestCase {
$this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class);
$this->expectExceptionMessage('The resource you tried to create has a reserved name');
- /** @var MkCol | \PHPUnit_Framework_MockObject_MockObject $mkCol */
+ /** @var MkCol | \PHPUnit\Framework\MockObject\MockObject $mkCol */
$mkCol = $this->createMock(MkCol::class);
$this->calendarHome->createExtendedCollection('app-generated--example--foo-1', $mkCol);
diff --git a/apps/dav/tests/unit/CalDAV/CalendarImplTest.php b/apps/dav/tests/unit/CalDAV/CalendarImplTest.php
index efd9353d1dc..f84934a6029 100644
--- a/apps/dav/tests/unit/CalDAV/CalendarImplTest.php
+++ b/apps/dav/tests/unit/CalDAV/CalendarImplTest.php
@@ -34,13 +34,13 @@ class CalendarImplTest extends \Test\TestCase {
/** @var CalendarImpl */
private $calendarImpl;
- /** @var Calendar | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var Calendar | \PHPUnit\Framework\MockObject\MockObject */
private $calendar;
/** @var array */
private $calendarInfo;
- /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var CalDavBackend | \PHPUnit\Framework\MockObject\MockObject */
private $backend;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/CalDAV/CalendarManagerTest.php b/apps/dav/tests/unit/CalDAV/CalendarManagerTest.php
index b4095990e50..a04bc1afdc7 100644
--- a/apps/dav/tests/unit/CalDAV/CalendarManagerTest.php
+++ b/apps/dav/tests/unit/CalDAV/CalendarManagerTest.php
@@ -36,13 +36,13 @@ use OCP\IL10N;
class CalendarManagerTest extends \Test\TestCase {
- /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var CalDavBackend | \PHPUnit\Framework\MockObject\MockObject */
private $backend;
- /** @var IL10N | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IL10N | \PHPUnit\Framework\MockObject\MockObject */
private $l10n;
- /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
private $config;
/** @var CalendarManager */
@@ -66,7 +66,7 @@ class CalendarManagerTest extends \Test\TestCase {
['id' => 456, 'uri' => 'blablub2'],
]);
- /** @var IManager | \PHPUnit_Framework_MockObject_MockObject $calendarManager */
+ /** @var IManager | \PHPUnit\Framework\MockObject\MockObject $calendarManager */
$calendarManager = $this->createMock(Manager::class);
$calendarManager->expects($this->at(0))
->method('registerCalendar')
diff --git a/apps/dav/tests/unit/CalDAV/CalendarTest.php b/apps/dav/tests/unit/CalDAV/CalendarTest.php
index da3a6f9e55c..e143820daeb 100644
--- a/apps/dav/tests/unit/CalDAV/CalendarTest.php
+++ b/apps/dav/tests/unit/CalDAV/CalendarTest.php
@@ -60,7 +60,7 @@ class CalendarTest extends TestCase {
}
public function testDelete() {
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->once())->method('updateShares');
$backend->expects($this->any())->method('getShares')->willReturn([
@@ -80,7 +80,7 @@ class CalendarTest extends TestCase {
public function testDeleteFromGroup() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->never())->method('updateShares');
$backend->expects($this->any())->method('getShares')->willReturn([
@@ -97,7 +97,7 @@ class CalendarTest extends TestCase {
}
public function testDeleteOwn() {
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->createMock(CalDavBackend::class);
$backend->expects($this->never())->method('updateShares');
$backend->expects($this->never())->method('getShares');
@@ -118,7 +118,7 @@ class CalendarTest extends TestCase {
}
public function testDeleteBirthdayCalendar() {
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->createMock(CalDavBackend::class);
$backend->expects($this->once())->method('deleteCalendar')
->with(666);
@@ -169,7 +169,7 @@ class CalendarTest extends TestCase {
* @dataProvider dataPropPatch
*/
public function testPropPatch($ownerPrincipal, $principalUri, $mutations, $shared) {
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock();
$calendarInfo = [
'{http://owncloud.org/ns}owner-principal' => $ownerPrincipal,
@@ -193,7 +193,7 @@ class CalendarTest extends TestCase {
* @dataProvider providesReadOnlyInfo
*/
public function testAcl($expectsWrite, $readOnlyValue, $hasOwnerSet, $uri = 'default') {
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->any())->method('applyShareAcl')->willReturnArgument(1);
$calendarInfo = [
@@ -300,7 +300,7 @@ class CalendarTest extends TestCase {
$calObject1 = ['uri' => 'event-1', 'classification' => CalDavBackend::CLASSIFICATION_CONFIDENTIAL];
$calObject2 = ['uri' => 'event-2', 'classification' => CalDavBackend::CLASSIFICATION_PRIVATE];
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->any())->method('getCalendarObjects')->willReturn([
$calObject0, $calObject1, $calObject2
@@ -387,7 +387,7 @@ EOD;
$calObject1 = ['uri' => 'event-1', 'classification' => CalDavBackend::CLASSIFICATION_CONFIDENTIAL, 'calendardata' => $calData];
$calObject2 = ['uri' => 'event-2', 'classification' => CalDavBackend::CLASSIFICATION_PRIVATE];
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->any())->method('getCalendarObjects')->willReturn([
$calObject0, $calObject1, $calObject2
@@ -554,7 +554,7 @@ EOD;
'classification' => CalDavBackend::CLASSIFICATION_CONFIDENTIAL,
'calendardata' => $confidentialObjectData];
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->createMock(CalDavBackend::class);
$backend->expects($this->any())
->method('getCalendarObjects')
diff --git a/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php b/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php
index c70ec6e17f3..985da38133c 100644
--- a/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php
+++ b/apps/dav/tests/unit/CalDAV/PublicCalendarRootTest.php
@@ -60,11 +60,11 @@ class PublicCalendarRootTest extends TestCase {
private $publicCalendarRoot;
/** @var IL10N */
private $l10n;
- /** @var Principal|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Principal|\PHPUnit\Framework\MockObject\MockObject */
private $principal;
- /** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */
protected $userManager;
- /** @var IGroupManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IGroupManager|\PHPUnit\Framework\MockObject\MockObject */
protected $groupManager;
/** @var IConfig */
protected $config;
diff --git a/apps/dav/tests/unit/CalDAV/PublicCalendarTest.php b/apps/dav/tests/unit/CalDAV/PublicCalendarTest.php
index 5710a1793c6..446452ae6c0 100644
--- a/apps/dav/tests/unit/CalDAV/PublicCalendarTest.php
+++ b/apps/dav/tests/unit/CalDAV/PublicCalendarTest.php
@@ -42,7 +42,7 @@ class PublicCalendarTest extends CalendarTest {
$calObject1 = ['uri' => 'event-1', 'classification' => CalDavBackend::CLASSIFICATION_CONFIDENTIAL];
$calObject2 = ['uri' => 'event-2', 'classification' => CalDavBackend::CLASSIFICATION_PRIVATE];
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->any())->method('getCalendarObjects')->willReturn([
$calObject0, $calObject1, $calObject2
@@ -62,7 +62,7 @@ class PublicCalendarTest extends CalendarTest {
'id' => 666,
'uri' => 'cal',
];
- /** @var \PHPUnit_Framework_MockObject_MockObject | IConfig $config */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | IConfig $config */
$config = $this->createMock(IConfig::class);
$c = new PublicCalendar($backend, $calendarInfo, $this->l10n, $config);
@@ -129,7 +129,7 @@ EOD;
$calObject1 = ['uri' => 'event-1', 'classification' => CalDavBackend::CLASSIFICATION_CONFIDENTIAL, 'calendardata' => $calData];
$calObject2 = ['uri' => 'event-2', 'classification' => CalDavBackend::CLASSIFICATION_PRIVATE];
- /** @var \PHPUnit_Framework_MockObject_MockObject | CalDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CalDavBackend $backend */
$backend = $this->getMockBuilder(CalDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->any())->method('getCalendarObjects')->willReturn([
$calObject0, $calObject1, $calObject2
@@ -149,7 +149,7 @@ EOD;
'id' => 666,
'uri' => 'cal',
];
- /** @var \PHPUnit_Framework_MockObject_MockObject | IConfig $config */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | IConfig $config */
$config = $this->createMock(IConfig::class);
$c = new PublicCalendar($backend, $calendarInfo, $this->l10n, $config);
diff --git a/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php b/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php
index cf30df723cf..70731878a41 100644
--- a/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php
+++ b/apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php
@@ -43,11 +43,11 @@ class PluginTest extends TestCase {
private $plugin;
/** @var Server */
private $server;
- /** @var Calendar | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var Calendar | \PHPUnit\Framework\MockObject\MockObject */
private $book;
- /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */
private $config;
- /** @var IURLGenerator | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IURLGenerator | \PHPUnit\Framework\MockObject\MockObject */
private $urlGenerator;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/CalDAV/ResourceBooking/AbstractPrincipalBackendTest.php b/apps/dav/tests/unit/CalDAV/ResourceBooking/AbstractPrincipalBackendTest.php
index e614da37f4c..d4649fccd29 100644
--- a/apps/dav/tests/unit/CalDAV/ResourceBooking/AbstractPrincipalBackendTest.php
+++ b/apps/dav/tests/unit/CalDAV/ResourceBooking/AbstractPrincipalBackendTest.php
@@ -39,16 +39,16 @@ abstract class AbstractPrincipalBackendTest extends TestCase {
/** @var \OCA\DAV\CalDAV\ResourceBooking\ResourcePrincipalBackend|\OCA\DAV\CalDAV\ResourceBooking\RoomPrincipalBackend */
protected $principalBackend;
- /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserSession|\PHPUnit\Framework\MockObject\MockObject */
protected $userSession;
- /** @var IGroupManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IGroupManager|\PHPUnit\Framework\MockObject\MockObject */
protected $groupManager;
- /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */
protected $logger;
- /** @var ProxyMapper|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ProxyMapper|\PHPUnit\Framework\MockObject\MockObject */
protected $proxyMapper;
/** @var string */
diff --git a/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php b/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
index 242106fbcc9..2d8c9cb10ab 100644
--- a/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
+++ b/apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
@@ -44,16 +44,16 @@ class AddressBookImplTest extends TestCase {
/** @var array */
private $addressBookInfo;
- /** @var AddressBook | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var AddressBook | \PHPUnit\Framework\MockObject\MockObject */
private $addressBook;
- /** @var IURLGenerator | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IURLGenerator | \PHPUnit\Framework\MockObject\MockObject */
private $urlGenerator;
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject */
private $backend;
- /** @var VCard | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var VCard | \PHPUnit\Framework\MockObject\MockObject */
private $vCard;
protected function setUp(): void {
@@ -92,7 +92,7 @@ class AddressBookImplTest extends TestCase {
public function testSearch() {
- /** @var \PHPUnit_Framework_MockObject_MockObject | AddressBookImpl $addressBookImpl */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | AddressBookImpl $addressBookImpl */
$addressBookImpl = $this->getMockBuilder(AddressBookImpl::class)
->setConstructorArgs(
[
@@ -138,7 +138,7 @@ class AddressBookImplTest extends TestCase {
public function testCreate($properties) {
$uid = 'uid';
- /** @var \PHPUnit_Framework_MockObject_MockObject | AddressBookImpl $addressBookImpl */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | AddressBookImpl $addressBookImpl */
$addressBookImpl = $this->getMockBuilder(AddressBookImpl::class)
->setConstructorArgs(
[
@@ -178,7 +178,7 @@ class AddressBookImplTest extends TestCase {
$uri = 'bla.vcf';
$properties = ['URI' => $uri, 'UID' => $uid, 'FN' => 'John Doe'];
- /** @var \PHPUnit_Framework_MockObject_MockObject | AddressBookImpl $addressBookImpl */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | AddressBookImpl $addressBookImpl */
$addressBookImpl = $this->getMockBuilder(AddressBookImpl::class)
->setConstructorArgs(
[
@@ -261,7 +261,7 @@ class AddressBookImplTest extends TestCase {
}
public function testCreateUid() {
- /** @var \PHPUnit_Framework_MockObject_MockObject | AddressBookImpl $addressBookImpl */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | AddressBookImpl $addressBookImpl */
$addressBookImpl = $this->getMockBuilder(AddressBookImpl::class)
->setConstructorArgs(
[
diff --git a/apps/dav/tests/unit/CardDAV/AddressBookTest.php b/apps/dav/tests/unit/CardDAV/AddressBookTest.php
index 0121df9c8d5..cddbd5164dc 100644
--- a/apps/dav/tests/unit/CardDAV/AddressBookTest.php
+++ b/apps/dav/tests/unit/CardDAV/AddressBookTest.php
@@ -34,7 +34,7 @@ use Test\TestCase;
class AddressBookTest extends TestCase {
public function testDelete() {
- /** @var \PHPUnit_Framework_MockObject_MockObject | CardDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CardDavBackend $backend */
$backend = $this->getMockBuilder(CardDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->once())->method('updateShares');
$backend->expects($this->any())->method('getShares')->willReturn([
@@ -52,11 +52,11 @@ class AddressBookTest extends TestCase {
$c->delete();
}
-
+
public function testDeleteFromGroup() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
- /** @var \PHPUnit_Framework_MockObject_MockObject | CardDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CardDavBackend $backend */
$backend = $this->getMockBuilder(CardDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->never())->method('updateShares');
$backend->expects($this->any())->method('getShares')->willReturn([
@@ -74,11 +74,11 @@ class AddressBookTest extends TestCase {
$c->delete();
}
-
+
public function testPropPatch() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
- /** @var \PHPUnit_Framework_MockObject_MockObject | CardDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CardDavBackend $backend */
$backend = $this->getMockBuilder(CardDavBackend::class)->disableOriginalConstructor()->getMock();
$calendarInfo = [
'{http://owncloud.org/ns}owner-principal' => 'user1',
@@ -96,7 +96,7 @@ class AddressBookTest extends TestCase {
* @dataProvider providesReadOnlyInfo
*/
public function testAcl($expectsWrite, $readOnlyValue, $hasOwnerSet) {
- /** @var \PHPUnit_Framework_MockObject_MockObject | CardDavBackend $backend */
+ /** @var \PHPUnit\Framework\MockObject\MockObject | CardDavBackend $backend */
$backend = $this->getMockBuilder(CardDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->any())->method('applyShareAcl')->willReturnArgument(1);
$calendarInfo = [
diff --git a/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php b/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php
index 8885637aee6..ee73c6437f5 100644
--- a/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php
+++ b/apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php
@@ -41,17 +41,17 @@ class BirthdayServiceTest extends TestCase {
/** @var BirthdayService */
private $service;
- /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var CalDavBackend | \PHPUnit\Framework\MockObject\MockObject */
private $calDav;
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject */
private $cardDav;
- /** @var GroupPrincipalBackend | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var GroupPrincipalBackend | \PHPUnit\Framework\MockObject\MockObject */
private $groupPrincipalBackend;
- /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */
private $config;
- /** @var IDBConnection | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IDBConnection | \PHPUnit\Framework\MockObject\MockObject */
private $dbConnection;
- /** @var IL10N | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IL10N | \PHPUnit\Framework\MockObject\MockObject */
private $l10n;
protected function setUp(): void {
@@ -209,7 +209,7 @@ class BirthdayServiceTest extends TestCase {
$this->cardDav->expects($this->once())->method('getShares')->willReturn([]);
$this->calDav->expects($this->never())->method('getCalendarByUri');
- /** @var BirthdayService | \PHPUnit_Framework_MockObject_MockObject $service */
+ /** @var BirthdayService | \PHPUnit\Framework\MockObject\MockObject $service */
$service = $this->getMockBuilder(BirthdayService::class)
->setMethods(['buildDateFromContact', 'birthdayEvenChanged'])
->setConstructorArgs([$this->calDav, $this->cardDav, $this->groupPrincipalBackend, $this->config, $this->dbConnection, $this->l10n])
@@ -245,7 +245,7 @@ class BirthdayServiceTest extends TestCase {
]);
$this->cardDav->expects($this->once())->method('getShares')->willReturn([]);
- /** @var BirthdayService | \PHPUnit_Framework_MockObject_MockObject $service */
+ /** @var BirthdayService | \PHPUnit\Framework\MockObject\MockObject $service */
$service = $this->getMockBuilder(BirthdayService::class)
->setMethods(['buildDateFromContact', 'birthdayEvenChanged'])
->setConstructorArgs([$this->calDav, $this->cardDav, $this->groupPrincipalBackend, $this->config, $this->dbConnection, $this->l10n])
diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
index 0e507bc6b3d..6b90096c57f 100644
--- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
+++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
@@ -66,16 +66,16 @@ class CardDavBackendTest extends TestCase {
/** @var CardDavBackend */
private $backend;
- /** @var Principal | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var Principal | \PHPUnit\Framework\MockObject\MockObject */
private $principal;
- /** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */
private $userManager;
- /** @var IGroupManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IGroupManager|\PHPUnit\Framework\MockObject\MockObject */
private $groupManager;
- /** @var EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var EventDispatcherInterface|\PHPUnit\Framework\MockObject\MockObject */
private $dispatcher;
/** @var IDBConnection */
@@ -239,7 +239,7 @@ class CardDavBackendTest extends TestCase {
public function testCardOperations() {
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $backend */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject $backend */
$backend = $this->getMockBuilder(CardDavBackend::class)
->setConstructorArgs([$this->db, $this->principal, $this->userManager, $this->groupManager, $this->dispatcher])
->setMethods(['updateProperties', 'purgeProperties'])->getMock();
diff --git a/apps/dav/tests/unit/CardDAV/ContactsManagerTest.php b/apps/dav/tests/unit/CardDAV/ContactsManagerTest.php
index ef2652121cb..63c1413eec0 100644
--- a/apps/dav/tests/unit/CardDAV/ContactsManagerTest.php
+++ b/apps/dav/tests/unit/CardDAV/ContactsManagerTest.php
@@ -35,11 +35,11 @@ use Test\TestCase;
class ContactsManagerTest extends TestCase {
public function test() {
- /** @var IManager | \PHPUnit_Framework_MockObject_MockObject $cm */
+ /** @var IManager | \PHPUnit\Framework\MockObject\MockObject $cm */
$cm = $this->getMockBuilder(IManager::class)->disableOriginalConstructor()->getMock();
$cm->expects($this->exactly(2))->method('registerAddressBook');
$urlGenerator = $this->getMockBuilder(IURLGenerator::class)->disableOriginalConstructor()->getMock();
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $backEnd */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject $backEnd */
$backEnd = $this->getMockBuilder(CardDavBackend::class)->disableOriginalConstructor()->getMock();
$backEnd->method('getAddressBooksForUser')->willReturn([
['{DAV:}displayname' => 'Test address book', 'uri' => 'default'],
diff --git a/apps/dav/tests/unit/CardDAV/ConverterTest.php b/apps/dav/tests/unit/CardDAV/ConverterTest.php
index d502783ba41..8b4125c6c68 100644
--- a/apps/dav/tests/unit/CardDAV/ConverterTest.php
+++ b/apps/dav/tests/unit/CardDAV/ConverterTest.php
@@ -31,12 +31,11 @@ use OC\Accounts\AccountManager;
use OCA\DAV\CardDAV\Converter;
use OCP\IImage;
use OCP\IUser;
-use PHPUnit_Framework_MockObject_MockObject;
use Test\TestCase;
class ConverterTest extends TestCase {
- /** @var AccountManager | PHPUnit_Framework_MockObject_MockObject */
+ /** @var AccountManager | \PHPUnit\Framework\MockObject\MockObject */
private $accountManager;
protected function setUp(): void {
@@ -201,7 +200,7 @@ class ConverterTest extends TestCase {
* @param $displayName
* @param $eMailAddress
* @param $cloudId
- * @return IUser | PHPUnit_Framework_MockObject_MockObject
+ * @return IUser | \PHPUnit\Framework\MockObject\MockObject
*/
protected function getUserMock($displayName, $eMailAddress, $cloudId) {
$image0 = $this->getMockBuilder(IImage::class)->disableOriginalConstructor()->getMock();
diff --git a/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php b/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
index 1fbcea4f3f6..649249659c7 100644
--- a/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
+++ b/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
@@ -40,17 +40,17 @@ use Test\TestCase;
class ImageExportPluginTest extends TestCase {
- /** @var ResponseInterface|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ResponseInterface|\PHPUnit\Framework\MockObject\MockObject */
private $response;
- /** @var RequestInterface|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var RequestInterface|\PHPUnit\Framework\MockObject\MockObject */
private $request;
- /** @var ImageExportPlugin|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ImageExportPlugin|\PHPUnit\Framework\MockObject\MockObject */
private $plugin;
/** @var Server */
private $server;
- /** @var Tree|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Tree|\PHPUnit\Framework\MockObject\MockObject */
private $tree;
- /** @var PhotoCache|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var PhotoCache|\PHPUnit\Framework\MockObject\MockObject */
private $cache;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php b/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php
index 48d9479c999..146ead4ed3f 100644
--- a/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php
+++ b/apps/dav/tests/unit/CardDAV/Sharing/PluginTest.php
@@ -43,13 +43,13 @@ class PluginTest extends TestCase {
private $plugin;
/** @var Server */
private $server;
- /** @var IShareable | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IShareable | \PHPUnit\Framework\MockObject\MockObject */
private $book;
protected function setUp(): void {
parent::setUp();
- /** @var Auth | \PHPUnit_Framework_MockObject_MockObject $authBackend */
+ /** @var Auth | \PHPUnit\Framework\MockObject\MockObject $authBackend */
$authBackend = $this->getMockBuilder(Auth::class)->disableOriginalConstructor()->getMock();
$authBackend->method('isDavAuthenticated')->willReturn(true);
diff --git a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php
index 87e239cfa5e..0a474d649bc 100644
--- a/apps/dav/tests/unit/CardDAV/SyncServiceTest.php
+++ b/apps/dav/tests/unit/CardDAV/SyncServiceTest.php
@@ -72,7 +72,7 @@ class SyncServiceTest extends TestCase {
}
public function testEnsureSystemAddressBookExists() {
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $backend */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject $backend */
$backend = $this->getMockBuilder(CardDavBackend::class)->disableOriginalConstructor()->getMock();
$backend->expects($this->exactly(1))->method('createAddressBook');
$backend->expects($this->at(0))->method('getAddressBooksByUri')->willReturn(null);
@@ -103,7 +103,7 @@ class SyncServiceTest extends TestCase {
* @return void
*/
public function testUpdateAndDeleteUser($activated, $createCalls, $updateCalls, $deleteCalls) {
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $backend */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject $backend */
$backend = $this->getMockBuilder(CardDavBackend::class)->disableOriginalConstructor()->getMock();
$logger = $this->getMockBuilder(ILogger::class)->disableOriginalConstructor()->getMock();
@@ -119,10 +119,10 @@ class SyncServiceTest extends TestCase {
->with('principals/system/system', 'system')
->willReturn(['id' => -1]);
- /** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject $userManager */
+ /** @var IUserManager | \PHPUnit\Framework\MockObject\MockObject $userManager */
$userManager = $this->getMockBuilder(IUserManager::class)->disableOriginalConstructor()->getMock();
- /** @var IUser | \PHPUnit_Framework_MockObject_MockObject $user */
+ /** @var IUser | \PHPUnit\Framework\MockObject\MockObject $user */
$user = $this->getMockBuilder(IUser::class)->disableOriginalConstructor()->getMock();
$user->method('getBackendClassName')->willReturn('unittest');
$user->method('getUID')->willReturn('test-user');
@@ -181,7 +181,7 @@ class SyncServiceTest extends TestCase {
* @param int $createCount
* @param int $updateCount
* @param int $deleteCount
- * @return \PHPUnit_Framework_MockObject_MockObject
+ * @return \PHPUnit\Framework\MockObject\MockObject
*/
private function getBackendMock($createCount, $updateCount, $deleteCount) {
$backend = $this->getMockBuilder(CardDavBackend::class)
@@ -196,13 +196,13 @@ class SyncServiceTest extends TestCase {
/**
* @param $backend
* @param $response
- * @return SyncService|\PHPUnit_Framework_MockObject_MockObject
+ * @return SyncService|\PHPUnit\Framework\MockObject\MockObject
*/
private function getSyncServiceMock($backend, $response) {
$userManager = $this->getMockBuilder(IUserManager::class)->disableOriginalConstructor()->getMock();
$logger = $this->getMockBuilder(ILogger::class)->disableOriginalConstructor()->getMock();
$accountManager = $this->getMockBuilder(AccountManager::class)->disableOriginalConstructor()->getMock();
- /** @var SyncService | \PHPUnit_Framework_MockObject_MockObject $ss */
+ /** @var SyncService | \PHPUnit\Framework\MockObject\MockObject $ss */
$ss = $this->getMockBuilder(SyncService::class)
->setMethods(['ensureSystemAddressBookExists', 'requestSyncReport', 'download', 'getCertPath'])
->setConstructorArgs([$backend, $userManager, $logger, $accountManager])
diff --git a/apps/dav/tests/unit/Command/MoveCalendarTest.php b/apps/dav/tests/unit/Command/MoveCalendarTest.php
index 750863175a2..25c283b8964 100644
--- a/apps/dav/tests/unit/Command/MoveCalendarTest.php
+++ b/apps/dav/tests/unit/Command/MoveCalendarTest.php
@@ -50,16 +50,16 @@ class MoveCalendarTest extends TestCase {
/** @var \OCP\IGroupManager|\PHPUnit\Framework\MockObject\MockObject $groupManager */
private $groupManager;
- /** @var \OCP\Share\IManager|\PHPUnit_Framework_MockObject_MockObject $shareManager */
+ /** @var \OCP\Share\IManager|\PHPUnit\Framework\MockObject\MockObject $shareManager */
private $shareManager;
- /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject $l10n */
+ /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject $l10n */
private $config;
- /** @var IL10N|\PHPUnit_Framework_MockObject_MockObject $l10n */
+ /** @var IL10N|\PHPUnit\Framework\MockObject\MockObject $l10n */
private $l10n;
- /** @var CalDavBackend|\PHPUnit_Framework_MockObject_MockObject $l10n */
+ /** @var CalDavBackend|\PHPUnit\Framework\MockObject\MockObject $l10n */
private $calDav;
/** @var MoveCalendar */
diff --git a/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php b/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
index 2416ec6978f..296cec48bce 100644
--- a/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
+++ b/apps/dav/tests/unit/Command/RemoveInvalidSharesTest.php
@@ -50,10 +50,10 @@ class RemoveInvalidSharesTest extends TestCase {
public function test() {
$db = \OC::$server->getDatabaseConnection();
- /** @var Principal | \PHPUnit_Framework_MockObject_MockObject $principal */
+ /** @var Principal | \PHPUnit\Framework\MockObject\MockObject $principal */
$principal = $this->createMock(Principal::class);
- /** @var IOutput | \PHPUnit_Framework_MockObject_MockObject $output */
+ /** @var IOutput | \PHPUnit\Framework\MockObject\MockObject $output */
$output = $this->createMock(IOutput::class);
$repair = new RemoveInvalidShares($db, $principal);
diff --git a/apps/dav/tests/unit/Comments/CommentsNodeTest.php b/apps/dav/tests/unit/Comments/CommentsNodeTest.php
index 6bb0033ecb8..b9633c7e10a 100644
--- a/apps/dav/tests/unit/Comments/CommentsNodeTest.php
+++ b/apps/dav/tests/unit/Comments/CommentsNodeTest.php
@@ -39,7 +39,7 @@ use Sabre\DAV\PropPatch;
class CommentsNodeTest extends \Test\TestCase {
- /** @var ICommentsManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ICommentsManager|\PHPUnit\Framework\MockObject\MockObject */
protected $commentsManager;
protected $comment;
diff --git a/apps/dav/tests/unit/Comments/EntityCollectionTest.php b/apps/dav/tests/unit/Comments/EntityCollectionTest.php
index b7e8f3c5e5d..f8f3990fbac 100644
--- a/apps/dav/tests/unit/Comments/EntityCollectionTest.php
+++ b/apps/dav/tests/unit/Comments/EntityCollectionTest.php
@@ -35,15 +35,15 @@ use OCP\IUserSession;
class EntityCollectionTest extends \Test\TestCase {
- /** @var \OCP\Comments\ICommentsManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\Comments\ICommentsManager|\PHPUnit\Framework\MockObject\MockObject */
protected $commentsManager;
- /** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */
protected $userManager;
- /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */
protected $logger;
/** @var EntityCollection */
protected $collection;
- /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserSession|\PHPUnit\Framework\MockObject\MockObject */
protected $userSession;
protected function setUp(): void {
@@ -90,7 +90,7 @@ class EntityCollectionTest extends \Test\TestCase {
$this->assertTrue($node instanceof \OCA\DAV\Comments\CommentNode);
}
-
+
public function testGetChildException() {
$this->expectException(\Sabre\DAV\Exception\NotFound::class);
diff --git a/apps/dav/tests/unit/Comments/EntityTypeCollectionTest.php b/apps/dav/tests/unit/Comments/EntityTypeCollectionTest.php
index c7833395b0d..dcdc8608c67 100644
--- a/apps/dav/tests/unit/Comments/EntityTypeCollectionTest.php
+++ b/apps/dav/tests/unit/Comments/EntityTypeCollectionTest.php
@@ -33,15 +33,15 @@ use OCP\IUserSession;
class EntityTypeCollectionTest extends \Test\TestCase {
- /** @var ICommentsManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ICommentsManager|\PHPUnit\Framework\MockObject\MockObject */
protected $commentsManager;
- /** @var \OCP\IUserManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\IUserManager|\PHPUnit\Framework\MockObject\MockObject */
protected $userManager;
- /** @var \OCP\ILogger|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\ILogger|\PHPUnit\Framework\MockObject\MockObject */
protected $logger;
/** @var \OCA\DAV\Comments\EntityTypeCollection */
protected $collection;
- /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserSession|\PHPUnit\Framework\MockObject\MockObject */
protected $userSession;
protected $childMap = [];
@@ -92,14 +92,14 @@ class EntityTypeCollectionTest extends \Test\TestCase {
$this->assertTrue($ec instanceof EntityCollectionImplemantation);
}
-
+
public function testGetChildException() {
$this->expectException(\Sabre\DAV\Exception\NotFound::class);
$this->collection->getChild('17');
}
-
+
public function testGetChildren() {
$this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class);
diff --git a/apps/dav/tests/unit/Comments/RootCollectionTest.php b/apps/dav/tests/unit/Comments/RootCollectionTest.php
index 68098f2aebc..8df7dd70dd3 100644
--- a/apps/dav/tests/unit/Comments/RootCollectionTest.php
+++ b/apps/dav/tests/unit/Comments/RootCollectionTest.php
@@ -39,19 +39,19 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class RootCollectionTest extends \Test\TestCase {
- /** @var \OCP\Comments\ICommentsManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\Comments\ICommentsManager|\PHPUnit\Framework\MockObject\MockObject */
protected $commentsManager;
- /** @var \OCP\IUserManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\IUserManager|\PHPUnit\Framework\MockObject\MockObject */
protected $userManager;
- /** @var \OCP\ILogger|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\ILogger|\PHPUnit\Framework\MockObject\MockObject */
protected $logger;
/** @var \OCA\DAV\Comments\RootCollection */
protected $collection;
- /** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\IUserSession|\PHPUnit\Framework\MockObject\MockObject */
protected $userSession;
/** @var EventDispatcherInterface */
protected $dispatcher;
- /** @var \OCP\IUser|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\IUser|\PHPUnit\Framework\MockObject\MockObject */
protected $user;
protected function setUp(): void {
@@ -107,14 +107,14 @@ class RootCollectionTest extends \Test\TestCase {
});
}
-
+
public function testCreateFile() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
$this->collection->createFile('foo');
}
-
+
public function testCreateDirectory() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
@@ -127,7 +127,7 @@ class RootCollectionTest extends \Test\TestCase {
$this->assertTrue($etc instanceof EntityTypeCollectionImplementation);
}
-
+
public function testGetChildInvalid() {
$this->expectException(\Sabre\DAV\Exception\NotFound::class);
@@ -135,7 +135,7 @@ class RootCollectionTest extends \Test\TestCase {
$this->collection->getChild('robots');
}
-
+
public function testGetChildNoAuth() {
$this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class);
@@ -151,7 +151,7 @@ class RootCollectionTest extends \Test\TestCase {
}
}
-
+
public function testGetChildrenNoAuth() {
$this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class);
@@ -168,14 +168,14 @@ class RootCollectionTest extends \Test\TestCase {
$this->assertFalse($this->collection->childExists('robots'));
}
-
+
public function testChildExistsNoAuth() {
$this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class);
$this->collection->childExists('files');
}
-
+
public function testDelete() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
@@ -186,7 +186,7 @@ class RootCollectionTest extends \Test\TestCase {
$this->assertSame('comments', $this->collection->getName());
}
-
+
public function testSetName() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
diff --git a/apps/dav/tests/unit/Connector/PublicAuthTest.php b/apps/dav/tests/unit/Connector/PublicAuthTest.php
index d3d17b03673..b8b59546eca 100644
--- a/apps/dav/tests/unit/Connector/PublicAuthTest.php
+++ b/apps/dav/tests/unit/Connector/PublicAuthTest.php
@@ -42,11 +42,11 @@ use OCP\Share\IShare;
*/
class PublicAuthTest extends \Test\TestCase {
- /** @var ISession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ISession|\PHPUnit\Framework\MockObject\MockObject */
private $session;
- /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */
private $request;
- /** @var IManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IManager|\PHPUnit\Framework\MockObject\MockObject */
private $shareManager;
/** @var \OCA\DAV\Connector\PublicAuth */
private $auth;
diff --git a/apps/dav/tests/unit/Connector/Sabre/BearerAuthTest.php b/apps/dav/tests/unit/Connector/Sabre/BearerAuthTest.php
index 0001f7913b1..7ab7f463a9f 100644
--- a/apps/dav/tests/unit/Connector/Sabre/BearerAuthTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/BearerAuthTest.php
@@ -37,11 +37,11 @@ use Test\TestCase;
* @group DB
*/
class BearerAuthTest extends TestCase {
- /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserSession|\PHPUnit\Framework\MockObject\MockObject */
private $userSession;
- /** @var ISession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ISession|\PHPUnit\Framework\MockObject\MockObject */
private $session;
- /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */
private $request;
/** @var BearerAuth */
private $bearerAuth;
@@ -87,9 +87,9 @@ class BearerAuthTest extends TestCase {
}
public function testChallenge() {
- /** @var \PHPUnit_Framework_MockObject_MockObject|RequestInterface $request */
+ /** @var \PHPUnit\Framework\MockObject\MockObject|RequestInterface $request */
$request = $this->createMock(RequestInterface::class);
- /** @var \PHPUnit_Framework_MockObject_MockObject|ResponseInterface $response */
+ /** @var \PHPUnit\Framework\MockObject\MockObject|ResponseInterface $response */
$response = $this->createMock(ResponseInterface::class);
$result = $this->bearerAuth->challenge($request, $response);
$this->assertEmpty($result);
diff --git a/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php
index d2f2d8f2d4c..97eb3301d3b 100644
--- a/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php
@@ -29,7 +29,6 @@ namespace OCA\DAV\Tests\unit\Connector\Sabre;
use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin;
use OCP\IConfig;
-use PHPUnit_Framework_MockObject_MockObject;
use Test\TestCase;
/**
@@ -38,7 +37,7 @@ use Test\TestCase;
* @package OCA\DAV\Tests\unit\Connector\Sabre
*/
class BlockLegacyClientPluginTest extends TestCase {
- /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */
private $config;
/** @var BlockLegacyClientPlugin */
private $blockLegacyClientVersionPlugin;
@@ -73,7 +72,7 @@ class BlockLegacyClientPluginTest extends TestCase {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
$this->expectExceptionMessage('Unsupported client version.');
- /** @var \Sabre\HTTP\RequestInterface | PHPUnit_Framework_MockObject_MockObject $request */
+ /** @var \Sabre\HTTP\RequestInterface | \PHPUnit\Framework\MockObject\MockObject $request */
$request = $this->createMock('\Sabre\HTTP\RequestInterface');
$request
->expects($this->once())
@@ -108,7 +107,7 @@ class BlockLegacyClientPluginTest extends TestCase {
* @param string $userAgent
*/
public function testBeforeHandlerSuccess($userAgent) {
- /** @var \Sabre\HTTP\RequestInterface | PHPUnit_Framework_MockObject_MockObject $request */
+ /** @var \Sabre\HTTP\RequestInterface | \PHPUnit\Framework\MockObject\MockObject $request */
$request = $this->createMock('\Sabre\HTTP\RequestInterface');
$request
->expects($this->once())
@@ -126,7 +125,7 @@ class BlockLegacyClientPluginTest extends TestCase {
}
public function testBeforeHandlerNoUserAgent() {
- /** @var \Sabre\HTTP\RequestInterface | PHPUnit_Framework_MockObject_MockObject $request */
+ /** @var \Sabre\HTTP\RequestInterface | \PHPUnit\Framework\MockObject\MockObject $request */
$request = $this->createMock('\Sabre\HTTP\RequestInterface');
$request
->expects($this->once())
diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
index 69b2dd5877e..00ec8b17837 100644
--- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
@@ -71,9 +71,9 @@ class TestViewDirectory extends \OC\Files\View {
*/
class DirectoryTest extends \Test\TestCase {
- /** @var \OC\Files\View | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OC\Files\View | \PHPUnit\Framework\MockObject\MockObject */
private $view;
- /** @var \OC\Files\FileInfo | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OC\Files\FileInfo | \PHPUnit\Framework\MockObject\MockObject */
private $info;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php
index e9a483d7e49..239b6c72f76 100644
--- a/apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/ExceptionLoggerPluginTest.php
@@ -32,7 +32,6 @@ use OC\Log;
use OC\SystemConfig;
use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin as PluginToTest;
-use PHPUnit_Framework_MockObject_MockObject;
use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\Exception\ServiceUnavailable;
use Sabre\DAV\Server;
@@ -56,7 +55,7 @@ class ExceptionLoggerPluginTest extends TestCase {
/** @var PluginToTest */
private $plugin;
- /** @var TestLogger | PHPUnit_Framework_MockObject_MockObject */
+ /** @var TestLogger | \PHPUnit\Framework\MockObject\MockObject */
private $logger;
private function init() {
diff --git a/apps/dav/tests/unit/Connector/Sabre/FileTest.php b/apps/dav/tests/unit/Connector/Sabre/FileTest.php
index 52b94f63811..7770239fe55 100644
--- a/apps/dav/tests/unit/Connector/Sabre/FileTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/FileTest.php
@@ -61,7 +61,7 @@ class FileTest extends TestCase {
*/
private $user;
- /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */
protected $config;
protected function setUp(): void {
@@ -89,7 +89,7 @@ class FileTest extends TestCase {
}
/**
- * @return \PHPUnit_Framework_MockObject_MockObject|Storage
+ * @return \PHPUnit\Framework\MockObject\MockObject|Storage
*/
private function getMockStorage() {
$storage = $this->getMockBuilder(Storage::class)
@@ -177,7 +177,7 @@ class FileTest extends TestCase {
->setConstructorArgs([['datadir' => \OC::$server->getTempManager()->getTemporaryFolder()]])
->getMock();
\OC\Files\Filesystem::mount($storage, [], $this->user . '/');
- /** @var View | \PHPUnit_Framework_MockObject_MockObject $view */
+ /** @var View | \PHPUnit\Framework\MockObject\MockObject $view */
$view = $this->getMockBuilder(View::class)
->setMethods(['getRelativePath', 'resolvePath'])
->getMock();
@@ -323,7 +323,7 @@ class FileTest extends TestCase {
null
);
- /** @var \OCA\DAV\Connector\Sabre\File | \PHPUnit_Framework_MockObject_MockObject $file */
+ /** @var \OCA\DAV\Connector\Sabre\File | \PHPUnit\Framework\MockObject\MockObject $file */
$file = $this->getMockBuilder(\OCA\DAV\Connector\Sabre\File::class)
->setConstructorArgs([$view, $info, null, $request])
->setMethods(['header'])
@@ -837,7 +837,7 @@ class FileTest extends TestCase {
$file->setName('/super*star.txt');
}
-
+
public function testUploadAbort() {
// setup
$view = $this->getMockBuilder(View::class)
@@ -881,7 +881,7 @@ class FileTest extends TestCase {
$this->assertEmpty($this->listPartFiles($view, ''), 'No stray part files');
}
-
+
public function testDeleteWhenAllowed() {
// setup
$view = $this->getMockBuilder(View::class)
@@ -901,7 +901,7 @@ class FileTest extends TestCase {
$file->delete();
}
-
+
public function testDeleteThrowsWhenDeletionNotAllowed() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
@@ -919,7 +919,7 @@ class FileTest extends TestCase {
$file->delete();
}
-
+
public function testDeleteThrowsWhenDeletionFailed() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
@@ -942,7 +942,7 @@ class FileTest extends TestCase {
$file->delete();
}
-
+
public function testDeleteThrowsWhenDeletionThrows() {
$this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class);
@@ -1112,7 +1112,7 @@ class FileTest extends TestCase {
];
}
-
+
public function testGetFopenFails() {
$this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class);
@@ -1132,7 +1132,7 @@ class FileTest extends TestCase {
$file->get();
}
-
+
public function testGetFopenThrows() {
$this->expectException(\OCA\DAV\Connector\Sabre\Exception\Forbidden::class);
@@ -1152,7 +1152,7 @@ class FileTest extends TestCase {
$file->get();
}
-
+
public function testGetThrowsIfNoPermission() {
$this->expectException(\Sabre\DAV\Exception\NotFound::class);
diff --git a/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php
index 9ce2837332f..15007689b64 100644
--- a/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php
@@ -69,12 +69,12 @@ class FilesPluginTest extends TestCase {
public const HAS_PREVIEW_PROPERTYNAME = FilesPlugin::HAS_PREVIEW_PROPERTYNAME;
/**
- * @var \Sabre\DAV\Server | \PHPUnit_Framework_MockObject_MockObject
+ * @var \Sabre\DAV\Server | \PHPUnit\Framework\MockObject\MockObject
*/
private $server;
/**
- * @var \Sabre\DAV\Tree | \PHPUnit_Framework_MockObject_MockObject
+ * @var \Sabre\DAV\Tree | \PHPUnit\Framework\MockObject\MockObject
*/
private $tree;
@@ -84,17 +84,17 @@ class FilesPluginTest extends TestCase {
private $plugin;
/**
- * @var \OCP\IConfig | \PHPUnit_Framework_MockObject_MockObject
+ * @var \OCP\IConfig | \PHPUnit\Framework\MockObject\MockObject
*/
private $config;
/**
- * @var \OCP\IRequest | \PHPUnit_Framework_MockObject_MockObject
+ * @var \OCP\IRequest | \PHPUnit\Framework\MockObject\MockObject
*/
private $request;
/**
- * @var \OCP\IPreview | \PHPUnit_Framework_MockObject_MockObject
+ * @var \OCP\IPreview | \PHPUnit\Framework\MockObject\MockObject
*/
private $previewManager;
@@ -135,7 +135,7 @@ class FilesPluginTest extends TestCase {
/**
* @param string $class
- * @return \PHPUnit_Framework_MockObject_MockObject
+ * @return \PHPUnit\Framework\MockObject\MockObject
*/
private function createTestNode($class, $path = '/dummypath') {
$node = $this->getMockBuilder($class)
@@ -177,7 +177,7 @@ class FilesPluginTest extends TestCase {
}
public function testGetPropertiesForFile() {
- /** @var \OCA\DAV\Connector\Sabre\File | \PHPUnit_Framework_MockObject_MockObject $node */
+ /** @var \OCA\DAV\Connector\Sabre\File | \PHPUnit\Framework\MockObject\MockObject $node */
$node = $this->createTestNode('\OCA\DAV\Connector\Sabre\File');
$propFind = new PropFind(
@@ -232,7 +232,7 @@ class FilesPluginTest extends TestCase {
}
public function testGetPropertiesStorageNotAvailable() {
- /** @var \OCA\DAV\Connector\Sabre\File | \PHPUnit_Framework_MockObject_MockObject $node */
+ /** @var \OCA\DAV\Connector\Sabre\File | \PHPUnit\Framework\MockObject\MockObject $node */
$node = $this->createTestNode('\OCA\DAV\Connector\Sabre\File');
$propFind = new PropFind(
@@ -274,7 +274,7 @@ class FilesPluginTest extends TestCase {
0
);
- /** @var \OCA\DAV\Connector\Sabre\File | \PHPUnit_Framework_MockObject_MockObject $node */
+ /** @var \OCA\DAV\Connector\Sabre\File | \PHPUnit\Framework\MockObject\MockObject $node */
$node = $this->createTestNode('\OCA\DAV\Connector\Sabre\File');
$node->expects($this->any())
->method('getDavPermissions')
@@ -289,7 +289,7 @@ class FilesPluginTest extends TestCase {
}
public function testGetPropertiesForDirectory() {
- /** @var \OCA\DAV\Connector\Sabre\Directory | \PHPUnit_Framework_MockObject_MockObject $node */
+ /** @var \OCA\DAV\Connector\Sabre\Directory | \PHPUnit\Framework\MockObject\MockObject $node */
$node = $this->createTestNode('\OCA\DAV\Connector\Sabre\Directory');
$propFind = new PropFind(
@@ -324,7 +324,7 @@ class FilesPluginTest extends TestCase {
}
public function testGetPropertiesForRootDirectory() {
- /** @var \OCA\DAV\Connector\Sabre\Directory|\PHPUnit_Framework_MockObject_MockObject $node */
+ /** @var \OCA\DAV\Connector\Sabre\Directory|\PHPUnit\Framework\MockObject\MockObject $node */
$node = $this->getMockBuilder(Directory::class)
->disableOriginalConstructor()
->getMock();
@@ -360,7 +360,7 @@ class FilesPluginTest extends TestCase {
// But we still want to load the directory list, so this is okay for us.
// $this->expectException(\Sabre\DAV\Exception\NotFound::class);
- /** @var \OCA\DAV\Connector\Sabre\Directory|\PHPUnit_Framework_MockObject_MockObject $node */
+ /** @var \OCA\DAV\Connector\Sabre\Directory|\PHPUnit\Framework\MockObject\MockObject $node */
$node = $this->getMockBuilder(Directory::class)
->disableOriginalConstructor()
->getMock();
@@ -509,7 +509,7 @@ class FilesPluginTest extends TestCase {
$this->plugin->checkMove('FolderA/test.txt', 'test.txt');
}
-
+
public function testMoveSrcNotExist() {
$this->expectException(\Sabre\DAV\Exception\NotFound::class);
$this->expectExceptionMessage('FolderA/test.txt does not exist');
@@ -584,7 +584,7 @@ class FilesPluginTest extends TestCase {
}
public function testHasPreview() {
- /** @var \OCA\DAV\Connector\Sabre\Directory | \PHPUnit_Framework_MockObject_MockObject $node */
+ /** @var \OCA\DAV\Connector\Sabre\Directory | \PHPUnit\Framework\MockObject\MockObject $node */
$node = $this->createTestNode('\OCA\DAV\Connector\Sabre\Directory');
$propFind = new PropFind(
diff --git a/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php
index ae678c7e9df..2a6bd96c543 100644
--- a/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php
@@ -50,19 +50,19 @@ use Sabre\DAV\Tree;
use Sabre\HTTP\ResponseInterface;
class FilesReportPluginTest extends \Test\TestCase {
- /** @var \Sabre\DAV\Server|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \Sabre\DAV\Server|\PHPUnit\Framework\MockObject\MockObject */
private $server;
- /** @var \Sabre\DAV\Tree|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \Sabre\DAV\Tree|\PHPUnit\Framework\MockObject\MockObject */
private $tree;
- /** @var ISystemTagObjectMapper|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ISystemTagObjectMapper|\PHPUnit\Framework\MockObject\MockObject */
private $tagMapper;
- /** @var ISystemTagManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ISystemTagManager|\PHPUnit\Framework\MockObject\MockObject */
private $tagManager;
- /** @var ITags|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ITags|\PHPUnit\Framework\MockObject\MockObject */
private $privateTags;
/** @var \OCP\IUserSession */
@@ -71,19 +71,19 @@ class FilesReportPluginTest extends \Test\TestCase {
/** @var FilesReportPluginImplementation */
private $plugin;
- /** @var View|\PHPUnit_Framework_MockObject_MockObject **/
+ /** @var View|\PHPUnit\Framework\MockObject\MockObject **/
private $view;
- /** @var IGroupManager|\PHPUnit_Framework_MockObject_MockObject **/
+ /** @var IGroupManager|\PHPUnit\Framework\MockObject\MockObject **/
private $groupManager;
- /** @var Folder|\PHPUnit_Framework_MockObject_MockObject **/
+ /** @var Folder|\PHPUnit\Framework\MockObject\MockObject **/
private $userFolder;
- /** @var IPreview|\PHPUnit_Framework_MockObject_MockObject * */
+ /** @var IPreview|\PHPUnit\Framework\MockObject\MockObject * */
private $previewManager;
- /** @var IAppManager|\PHPUnit_Framework_MockObject_MockObject * */
+ /** @var IAppManager|\PHPUnit\Framework\MockObject\MockObject * */
private $appManager;
protected function setUp(): void {
@@ -307,7 +307,7 @@ class FilesReportPluginTest extends \Test\TestCase {
->with('222')
->willReturn([$filesNode2]);
- /** @var \OCA\DAV\Connector\Sabre\Directory|\PHPUnit_Framework_MockObject_MockObject $reportTargetNode */
+ /** @var \OCA\DAV\Connector\Sabre\Directory|\PHPUnit\Framework\MockObject\MockObject $reportTargetNode */
$result = $this->plugin->findNodesByFileIds($reportTargetNode, ['111', '222']);
$this->assertCount(2, $result);
@@ -358,7 +358,7 @@ class FilesReportPluginTest extends \Test\TestCase {
->with('222')
->willReturn([$filesNode2]);
- /** @var \OCA\DAV\Connector\Sabre\Directory|\PHPUnit_Framework_MockObject_MockObject $reportTargetNode */
+ /** @var \OCA\DAV\Connector\Sabre\Directory|\PHPUnit\Framework\MockObject\MockObject $reportTargetNode */
$result = $this->plugin->findNodesByFileIds($reportTargetNode, ['111', '222']);
$this->assertCount(2, $result);
@@ -604,7 +604,7 @@ class FilesReportPluginTest extends \Test\TestCase {
$this->assertEquals(['222'], array_values($this->invokePrivate($this->plugin, 'processFilterRules', [$rules])));
}
-
+
public function testProcessFilterRulesInvisibleTagAsUser() {
$this->expectException(\OCP\SystemTag\TagNotFoundException::class);
diff --git a/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php b/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php
index 0f2305be23b..117707eaf2a 100644
--- a/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/PrincipalTest.php
@@ -46,28 +46,28 @@ use Test\TestCase;
class PrincipalTest extends TestCase {
- /** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager | \PHPUnit\Framework\MockObject\MockObject */
private $userManager;
/** @var \OCA\DAV\Connector\Sabre\Principal */
private $connector;
- /** @var IGroupManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IGroupManager | \PHPUnit\Framework\MockObject\MockObject */
private $groupManager;
- /** @var IManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IManager | \PHPUnit\Framework\MockObject\MockObject */
private $shareManager;
- /** @var IUserSession | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserSession | \PHPUnit\Framework\MockObject\MockObject */
private $userSession;
- /** @var IAppManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IAppManager | \PHPUnit\Framework\MockObject\MockObject */
private $appManager;
- /** @var ProxyMapper | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var ProxyMapper | \PHPUnit\Framework\MockObject\MockObject */
private $proxyMapper;
- /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */
private $config;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
index 194f9375f68..a4edbe6d942 100644
--- a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
@@ -42,10 +42,10 @@ use Test\TestCase;
*/
class QuotaPluginTest extends TestCase {
- /** @var \Sabre\DAV\Server | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var \Sabre\DAV\Server | \PHPUnit\Framework\MockObject\MockObject */
private $server;
- /** @var \OCA\DAV\Connector\Sabre\QuotaPlugin | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCA\DAV\Connector\Sabre\QuotaPlugin | \PHPUnit\Framework\MockObject\MockObject */
private $plugin;
private function init($quota, $checkedPath = '') {
diff --git a/apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php b/apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php
index 1e2cef4e37b..6dd5525dc7b 100644
--- a/apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php
+++ b/apps/dav/tests/unit/Controller/BirthdayCalendarControllerTest.php
@@ -39,25 +39,25 @@ use Test\TestCase;
class BirthdayCalendarControllerTest extends TestCase {
- /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
private $config;
- /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */
private $request;
- /** @var IDBConnection|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IDBConnection|\PHPUnit\Framework\MockObject\MockObject */
private $db;
- /** @var IJobList|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IJobList|\PHPUnit\Framework\MockObject\MockObject */
private $jobList;
- /** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */
private $userManager;
- /** @var CalDavBackend|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var CalDavBackend|\PHPUnit\Framework\MockObject\MockObject */
private $caldav;
- /** @var BirthdayCalendarController|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var BirthdayCalendarController|\PHPUnit\Framework\MockObject\MockObject */
private $controller;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Controller/DirectControllerTest.php b/apps/dav/tests/unit/Controller/DirectControllerTest.php
index bfafbed7611..72a0cebff0f 100644
--- a/apps/dav/tests/unit/Controller/DirectControllerTest.php
+++ b/apps/dav/tests/unit/Controller/DirectControllerTest.php
@@ -44,19 +44,19 @@ use Test\TestCase;
class DirectControllerTest extends TestCase {
- /** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRootFolder|\PHPUnit\Framework\MockObject\MockObject */
private $rootFolder;
- /** @var DirectMapper|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var DirectMapper|\PHPUnit\Framework\MockObject\MockObject */
private $directMapper;
- /** @var ISecureRandom|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ISecureRandom|\PHPUnit\Framework\MockObject\MockObject */
private $random;
- /** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ITimeFactory|\PHPUnit\Framework\MockObject\MockObject */
private $timeFactory;
- /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IURLGenerator|\PHPUnit\Framework\MockObject\MockObject */
private $urlGenerator;
/** @var DirectController */
diff --git a/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php b/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php
index 6e3a562e801..2fbfbedf461 100644
--- a/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php
+++ b/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php
@@ -44,16 +44,16 @@ class InvitationResponseControllerTest extends TestCase {
/** @var InvitationResponseController */
private $controller;
- /** @var IDBConnection|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IDBConnection|\PHPUnit\Framework\MockObject\MockObject */
private $dbConnection;
- /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */
private $request;
- /** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ITimeFactory|\PHPUnit\Framework\MockObject\MockObject */
private $timeFactory;
- /** @var InvitationResponseServer|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var InvitationResponseServer|\PHPUnit\Framework\MockObject\MockObject */
private $responseServer;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/DAV/BrowserErrorPagePluginTest.php b/apps/dav/tests/unit/DAV/BrowserErrorPagePluginTest.php
index 0343902ee65..370852abdad 100644
--- a/apps/dav/tests/unit/DAV/BrowserErrorPagePluginTest.php
+++ b/apps/dav/tests/unit/DAV/BrowserErrorPagePluginTest.php
@@ -25,7 +25,6 @@
namespace OCA\DAV\Tests\unit\DAV;
use OCA\DAV\Files\BrowserErrorPagePlugin;
-use PHPUnit_Framework_MockObject_MockObject;
use Sabre\DAV\Exception\NotFound;
use Sabre\HTTP\Response;
@@ -37,11 +36,11 @@ class BrowserErrorPagePluginTest extends \Test\TestCase {
* @param $exception
*/
public function test($expectedCode, $exception) {
- /** @var BrowserErrorPagePlugin | PHPUnit_Framework_MockObject_MockObject $plugin */
+ /** @var BrowserErrorPagePlugin | \PHPUnit\Framework\MockObject\MockObject $plugin */
$plugin = $this->getMockBuilder(BrowserErrorPagePlugin::class)->setMethods(['sendResponse', 'generateBody'])->getMock();
$plugin->expects($this->once())->method('generateBody')->willReturn(':boom:');
$plugin->expects($this->once())->method('sendResponse');
- /** @var \Sabre\DAV\Server | PHPUnit_Framework_MockObject_MockObject $server */
+ /** @var \Sabre\DAV\Server | \PHPUnit\Framework\MockObject\MockObject $server */
$server = $this->getMockBuilder('Sabre\DAV\Server')->disableOriginalConstructor()->getMock();
$server->expects($this->once())->method('on');
$httpResponse = $this->getMockBuilder(Response::class)->disableOriginalConstructor()->getMock();
diff --git a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
index da812016f21..5c813c0cfe7 100644
--- a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
+++ b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
@@ -39,16 +39,16 @@ use Test\TestCase;
*/
class CustomPropertiesBackendTest extends TestCase {
- /** @var Tree | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var Tree | \PHPUnit\Framework\MockObject\MockObject */
private $tree;
/** @var IDBConnection */
private $dbConnection;
- /** @var IUser | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUser | \PHPUnit\Framework\MockObject\MockObject */
private $user;
- /** @var CustomPropertiesBackend | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var CustomPropertiesBackend | \PHPUnit\Framework\MockObject\MockObject */
private $backend;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
index faf4fba7ee2..7011d00e3b4 100644
--- a/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
+++ b/apps/dav/tests/unit/DAV/GroupPrincipalTest.php
@@ -39,13 +39,13 @@ use Sabre\DAV\PropPatch;
class GroupPrincipalTest extends \Test\TestCase {
- /** @var IGroupManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IGroupManager | \PHPUnit\Framework\MockObject\MockObject */
private $groupManager;
- /** @var IUserSession | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserSession | \PHPUnit\Framework\MockObject\MockObject */
private $userSession;
- /** @var IManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IManager | \PHPUnit\Framework\MockObject\MockObject */
private $shareManager;
/** @var GroupPrincipalBackend */
@@ -176,7 +176,7 @@ class GroupPrincipalTest extends \Test\TestCase {
$this->assertSame([], $response);
}
-
+
public function testSetGroupMembership() {
$this->expectException(\Sabre\DAV\Exception::class);
$this->expectExceptionMessage('Setting members of the group is not supported yet');
@@ -312,7 +312,7 @@ class GroupPrincipalTest extends \Test\TestCase {
}
/**
- * @return Group|\PHPUnit_Framework_MockObject_MockObject
+ * @return Group|\PHPUnit\Framework\MockObject\MockObject
*/
private function mockGroup($gid) {
$fooGroup = $this->createMock(Group::class);
diff --git a/apps/dav/tests/unit/DAV/HookManagerTest.php b/apps/dav/tests/unit/DAV/HookManagerTest.php
index 836e66cd0d6..c094bc2f860 100644
--- a/apps/dav/tests/unit/DAV/HookManagerTest.php
+++ b/apps/dav/tests/unit/DAV/HookManagerTest.php
@@ -44,7 +44,7 @@ class HookManagerTest extends TestCase {
/** @var IL10N */
private $l10n;
- /** @var EventDispatcherInterface | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var EventDispatcherInterface | \PHPUnit\Framework\MockObject\MockObject */
private $eventDispatcher;
protected function setUp(): void {
@@ -65,17 +65,17 @@ class HookManagerTest extends TestCase {
->getMock();
$user->expects($this->once())->method('getUID')->willReturn('newUser');
- /** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject $userManager */
+ /** @var IUserManager | \PHPUnit\Framework\MockObject\MockObject $userManager */
$userManager = $this->getMockBuilder(IUserManager::class)
->disableOriginalConstructor()
->getMock();
- /** @var SyncService | \PHPUnit_Framework_MockObject_MockObject $syncService */
+ /** @var SyncService | \PHPUnit\Framework\MockObject\MockObject $syncService */
$syncService = $this->getMockBuilder(SyncService::class)
->disableOriginalConstructor()
->getMock();
- /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject $cal */
+ /** @var CalDavBackend | \PHPUnit\Framework\MockObject\MockObject $cal */
$cal = $this->getMockBuilder(CalDavBackend::class)
->disableOriginalConstructor()
->getMock();
@@ -84,7 +84,7 @@ class HookManagerTest extends TestCase {
'principals/users/newUser',
'personal', ['{DAV:}displayname' => 'Personal']);
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject $card */
$card = $this->getMockBuilder(CardDavBackend::class)
->disableOriginalConstructor()
->getMock();
@@ -103,24 +103,24 @@ class HookManagerTest extends TestCase {
->getMock();
$user->expects($this->once())->method('getUID')->willReturn('newUser');
- /** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject $userManager */
+ /** @var IUserManager | \PHPUnit\Framework\MockObject\MockObject $userManager */
$userManager = $this->getMockBuilder(IUserManager::class)
->disableOriginalConstructor()
->getMock();
- /** @var SyncService | \PHPUnit_Framework_MockObject_MockObject $syncService */
+ /** @var SyncService | \PHPUnit\Framework\MockObject\MockObject $syncService */
$syncService = $this->getMockBuilder(SyncService::class)
->disableOriginalConstructor()
->getMock();
- /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject $cal */
+ /** @var CalDavBackend | \PHPUnit\Framework\MockObject\MockObject $cal */
$cal = $this->getMockBuilder(CalDavBackend::class)
->disableOriginalConstructor()
->getMock();
$cal->expects($this->once())->method('getCalendarsForUserCount')->willReturn(1);
$cal->expects($this->never())->method('createCalendar');
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject $card */
$card = $this->getMockBuilder(CardDavBackend::class)
->disableOriginalConstructor()
->getMock();
@@ -137,17 +137,17 @@ class HookManagerTest extends TestCase {
->getMock();
$user->expects($this->once())->method('getUID')->willReturn('newUser');
- /** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject $userManager */
+ /** @var IUserManager | \PHPUnit\Framework\MockObject\MockObject $userManager */
$userManager = $this->getMockBuilder(IUserManager::class)
->disableOriginalConstructor()
->getMock();
- /** @var SyncService | \PHPUnit_Framework_MockObject_MockObject $syncService */
+ /** @var SyncService | \PHPUnit\Framework\MockObject\MockObject $syncService */
$syncService = $this->getMockBuilder(SyncService::class)
->disableOriginalConstructor()
->getMock();
- /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject $cal */
+ /** @var CalDavBackend | \PHPUnit\Framework\MockObject\MockObject $cal */
$cal = $this->getMockBuilder(CalDavBackend::class)
->disableOriginalConstructor()
->getMock();
@@ -156,7 +156,7 @@ class HookManagerTest extends TestCase {
'principals/users/newUser',
'personal', ['{DAV:}displayname' => 'Personal']);
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject $card */
$card = $this->getMockBuilder(CardDavBackend::class)
->disableOriginalConstructor()
->getMock();
@@ -174,20 +174,20 @@ class HookManagerTest extends TestCase {
->disableOriginalConstructor()
->getMock();
- /** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject $userManager */
+ /** @var IUserManager | \PHPUnit\Framework\MockObject\MockObject $userManager */
$userManager = $this->getMockBuilder(IUserManager::class)
->disableOriginalConstructor()
->getMock();
$userManager->expects($this->once())->method('get')->willReturn($user);
- /** @var SyncService | \PHPUnit_Framework_MockObject_MockObject $syncService */
+ /** @var SyncService | \PHPUnit\Framework\MockObject\MockObject $syncService */
$syncService = $this->getMockBuilder(SyncService::class)
->disableOriginalConstructor()
->getMock();
$syncService->expects($this->once())
->method('deleteUser');
- /** @var CalDavBackend | \PHPUnit_Framework_MockObject_MockObject $cal */
+ /** @var CalDavBackend | \PHPUnit\Framework\MockObject\MockObject $cal */
$cal = $this->getMockBuilder(CalDavBackend::class)
->disableOriginalConstructor()
->getMock();
@@ -197,7 +197,7 @@ class HookManagerTest extends TestCase {
$cal->expects($this->once())->method('deleteCalendar');
$cal->expects($this->once())->method('deleteAllSharesByUser');
- /** @var CardDavBackend | \PHPUnit_Framework_MockObject_MockObject $card */
+ /** @var CardDavBackend | \PHPUnit\Framework\MockObject\MockObject $card */
$card = $this->getMockBuilder(CardDavBackend::class)
->disableOriginalConstructor()
->getMock();
diff --git a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php
index 22fbf737793..038e0f9e7bf 100644
--- a/apps/dav/tests/unit/DAV/Sharing/PluginTest.php
+++ b/apps/dav/tests/unit/DAV/Sharing/PluginTest.php
@@ -43,13 +43,13 @@ class PluginTest extends TestCase {
private $plugin;
/** @var Server */
private $server;
- /** @var IShareable | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IShareable | \PHPUnit\Framework\MockObject\MockObject */
private $book;
protected function setUp(): void {
parent::setUp();
- /** @var Auth | \PHPUnit_Framework_MockObject_MockObject $authBackend */
+ /** @var Auth | \PHPUnit\Framework\MockObject\MockObject $authBackend */
$authBackend = $this->getMockBuilder(Auth::class)->disableOriginalConstructor()->getMock();
$authBackend->method('isDavAuthenticated')->willReturn(true);
diff --git a/apps/dav/tests/unit/Direct/DirectFileTest.php b/apps/dav/tests/unit/Direct/DirectFileTest.php
index 22dc555c186..2bf7eee908d 100644
--- a/apps/dav/tests/unit/Direct/DirectFileTest.php
+++ b/apps/dav/tests/unit/Direct/DirectFileTest.php
@@ -39,13 +39,13 @@ class DirectFileTest extends TestCase {
/** @var Direct */
private $direct;
- /** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRootFolder|\PHPUnit\Framework\MockObject\MockObject */
private $rootFolder;
- /** @var Folder|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Folder|\PHPUnit\Framework\MockObject\MockObject */
private $userFolder;
- /** @var File|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var File|\PHPUnit\Framework\MockObject\MockObject */
private $file;
/** @var DirectFile */
diff --git a/apps/dav/tests/unit/Direct/DirectHomeTest.php b/apps/dav/tests/unit/Direct/DirectHomeTest.php
index 2cefd09c819..b3b1754ec0f 100644
--- a/apps/dav/tests/unit/Direct/DirectHomeTest.php
+++ b/apps/dav/tests/unit/Direct/DirectHomeTest.php
@@ -42,16 +42,16 @@ use Test\TestCase;
class DirectHomeTest extends TestCase {
- /** @var DirectMapper|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var DirectMapper|\PHPUnit\Framework\MockObject\MockObject */
private $directMapper;
- /** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRootFolder|\PHPUnit\Framework\MockObject\MockObject */
private $rootFolder;
- /** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ITimeFactory|\PHPUnit\Framework\MockObject\MockObject */
private $timeFactory;
- /** @var Throttler|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Throttler|\PHPUnit\Framework\MockObject\MockObject */
private $throttler;
/** @var IRequest */
diff --git a/apps/dav/tests/unit/Files/FileSearchBackendTest.php b/apps/dav/tests/unit/Files/FileSearchBackendTest.php
index 733de9ea1e9..53a733d2503 100644
--- a/apps/dav/tests/unit/Files/FileSearchBackendTest.php
+++ b/apps/dav/tests/unit/Files/FileSearchBackendTest.php
@@ -47,28 +47,28 @@ use SearchDAV\Query\Query;
use Test\TestCase;
class FileSearchBackendTest extends TestCase {
- /** @var CachingTree|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var CachingTree|\PHPUnit\Framework\MockObject\MockObject */
private $tree;
/** @var IUser */
private $user;
- /** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRootFolder|\PHPUnit\Framework\MockObject\MockObject */
private $rootFolder;
- /** @var IManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IManager|\PHPUnit\Framework\MockObject\MockObject */
private $shareManager;
- /** @var View|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var View|\PHPUnit\Framework\MockObject\MockObject */
private $view;
- /** @var Folder|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Folder|\PHPUnit\Framework\MockObject\MockObject */
private $searchFolder;
/** @var FileSearchBackend */
private $search;
- /** @var Directory|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Directory|\PHPUnit\Framework\MockObject\MockObject */
private $davFolder;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Files/Sharing/FilesDropPluginTest.php b/apps/dav/tests/unit/Files/Sharing/FilesDropPluginTest.php
index 1143fd8192d..0281f98858f 100644
--- a/apps/dav/tests/unit/Files/Sharing/FilesDropPluginTest.php
+++ b/apps/dav/tests/unit/Files/Sharing/FilesDropPluginTest.php
@@ -35,19 +35,19 @@ use Test\TestCase;
class FilesDropPluginTest extends TestCase {
- /** @var View|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var View|\PHPUnit\Framework\MockObject\MockObject */
private $view;
- /** @var Server|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Server|\PHPUnit\Framework\MockObject\MockObject */
private $server;
/** @var FilesDropPlugin */
private $plugin;
- /** @var RequestInterface|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var RequestInterface|\PHPUnit\Framework\MockObject\MockObject */
private $request;
- /** @var ResponseInterface|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ResponseInterface|\PHPUnit\Framework\MockObject\MockObject */
private $response;
protected function setUp(): void {
diff --git a/apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php b/apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php
index 293a7abf45e..2365c94736c 100644
--- a/apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php
+++ b/apps/dav/tests/unit/Migration/CalDAVRemoveEmptyValueTest.php
@@ -40,13 +40,13 @@ use Test\TestCase;
*/
class CalDAVRemoveEmptyValueTest extends TestCase {
- /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */
private $logger;
- /** @var CalDavBackend|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var CalDavBackend|\PHPUnit\Framework\MockObject\MockObject */
private $backend;
- /** @var IOutput|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IOutput|\PHPUnit\Framework\MockObject\MockObject */
private $output;
/** @var string */
@@ -63,7 +63,7 @@ UID:1234567890@example.com
DTSTAMP:20151214T091032Z
STATUS:CONFIRMED
SEQUENCE:0
-SUMMARY:Ein Geburtstag
+SUMMARY:Ein Geburtstag
DTSTART;VALUE=:20151223T173000Z
X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC
CREATED;VALUE=:20151214T091032Z
@@ -84,7 +84,7 @@ UID:1234567890@example.com
DTSTAMP:20151214T091032Z
STATUS:CONFIRMED
SEQUENCE:0
-SUMMARY:Ein Geburtstag
+SUMMARY:Ein Geburtstag
DTSTART:20151223T173000Z
X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC
CREATED:20151214T091032Z
@@ -100,7 +100,7 @@ END:VCALENDAR';
}
public function testRunAllValid() {
- /** @var CalDAVRemoveEmptyValue|\PHPUnit_Framework_MockObject_MockObject $step */
+ /** @var CalDAVRemoveEmptyValue|\PHPUnit\Framework\MockObject\MockObject $step */
$step = $this->getMockBuilder(CalDAVRemoveEmptyValue::class)
->setConstructorArgs([
\OC::$server->getDatabaseConnection(),
@@ -124,7 +124,7 @@ END:VCALENDAR';
}
public function testRunInvalid() {
- /** @var CalDAVRemoveEmptyValue|\PHPUnit_Framework_MockObject_MockObject $step */
+ /** @var CalDAVRemoveEmptyValue|\PHPUnit\Framework\MockObject\MockObject $step */
$step = $this->getMockBuilder(CalDAVRemoveEmptyValue::class)
->setConstructorArgs([
\OC::$server->getDatabaseConnection(),
@@ -167,7 +167,7 @@ END:VCALENDAR';
}
public function testRunValid() {
- /** @var CalDAVRemoveEmptyValue|\PHPUnit_Framework_MockObject_MockObject $step */
+ /** @var CalDAVRemoveEmptyValue|\PHPUnit\Framework\MockObject\MockObject $step */
$step = $this->getMockBuilder(CalDAVRemoveEmptyValue::class)
->setConstructorArgs([
\OC::$server->getDatabaseConnection(),
@@ -209,7 +209,7 @@ END:VCALENDAR';
}
public function testRunStillInvalid() {
- /** @var CalDAVRemoveEmptyValue|\PHPUnit_Framework_MockObject_MockObject $step */
+ /** @var CalDAVRemoveEmptyValue|\PHPUnit\Framework\MockObject\MockObject $step */
$step = $this->getMockBuilder(CalDAVRemoveEmptyValue::class)
->setConstructorArgs([
\OC::$server->getDatabaseConnection(),
diff --git a/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php b/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php
index 6856915961f..60f96271aaa 100644
--- a/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php
+++ b/apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php
@@ -35,10 +35,10 @@ use Test\TestCase;
class RefreshWebcalJobRegistrarTest extends TestCase {
- /** @var IDBConnection | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IDBConnection | \PHPUnit\Framework\MockObject\MockObject */
private $db;
- /** @var IJobList | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IJobList | \PHPUnit\Framework\MockObject\MockObject */
private $jobList;
/** @var RefreshWebcalJobRegistrar */
diff --git a/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php b/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php
index ef7f2580941..15e0ea71066 100644
--- a/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php
+++ b/apps/dav/tests/unit/Migration/RegenerateBirthdayCalendarsTest.php
@@ -34,10 +34,10 @@ use Test\TestCase;
class RegenerateBirthdayCalendarsTest extends TestCase {
- /** @var IJobList | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IJobList | \PHPUnit\Framework\MockObject\MockObject */
private $jobList;
- /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */
private $config;
/** @var RegenerateBirthdayCalendars */
diff --git a/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php b/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php
index 75ca0c28cc2..83d618938bd 100644
--- a/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php
+++ b/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php
@@ -31,7 +31,7 @@ use Test\TestCase;
class AppleProvisioningNodeTest extends TestCase {
- /** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ITimeFactory|\PHPUnit\Framework\MockObject\MockObject */
private $timeFactory;
/** @var AppleProvisioningNode */
@@ -48,7 +48,7 @@ class AppleProvisioningNodeTest extends TestCase {
$this->assertEquals('apple-provisioning.mobileconfig', $this->node->getName());
}
-
+
public function testSetName() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
$this->expectExceptionMessage('Renaming apple-provisioning.mobileconfig is forbidden');
@@ -60,7 +60,7 @@ class AppleProvisioningNodeTest extends TestCase {
$this->assertEquals(null, $this->node->getLastModified());
}
-
+
public function testDelete() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
$this->expectExceptionMessage('apple-provisioning.mobileconfig may not be deleted');
@@ -79,7 +79,7 @@ class AppleProvisioningNodeTest extends TestCase {
], $this->node->getProperties([]));
}
-
+
public function testGetPropPatch() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
$this->expectExceptionMessage('apple-provisioning.mobileconfig\'s properties may not be altered.');
diff --git a/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningPluginTest.php b/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningPluginTest.php
index 3ca8d588475..93ae1b41ae2 100644
--- a/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningPluginTest.php
+++ b/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningPluginTest.php
@@ -37,28 +37,28 @@ use Test\TestCase;
class AppleProvisioningPluginTest extends TestCase {
- /** @var \Sabre\DAV\Server|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \Sabre\DAV\Server|\PHPUnit\Framework\MockObject\MockObject */
protected $server;
- /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserSession|\PHPUnit\Framework\MockObject\MockObject */
protected $userSession;
- /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IURLGenerator|\PHPUnit\Framework\MockObject\MockObject */
protected $urlGenerator;
- /** @var ThemingDefaults|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ThemingDefaults|\PHPUnit\Framework\MockObject\MockObject */
protected $themingDefaults;
- /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */
protected $request;
- /** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IL10N|\PHPUnit\Framework\MockObject\MockObject */
protected $l10n;
- /** @var \Sabre\HTTP\RequestInterface|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \Sabre\HTTP\RequestInterface|\PHPUnit\Framework\MockObject\MockObject */
protected $sabreRequest;
- /** @var \Sabre\HTTP\ResponseInterface|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \Sabre\HTTP\ResponseInterface|\PHPUnit\Framework\MockObject\MockObject */
protected $sabreResponse;
/** @var AppleProvisioningPlugin */
diff --git a/apps/dav/tests/unit/ServerTest.php b/apps/dav/tests/unit/ServerTest.php
index c9bdb2627c5..50cb46df694 100644
--- a/apps/dav/tests/unit/ServerTest.php
+++ b/apps/dav/tests/unit/ServerTest.php
@@ -42,7 +42,7 @@ class ServerTest extends \Test\TestCase {
* @dataProvider providesUris
*/
public function test($uri, array $plugins) {
- /** @var IRequest | \PHPUnit_Framework_MockObject_MockObject $r */
+ /** @var IRequest | \PHPUnit\Framework\MockObject\MockObject $r */
$r = $this->createMock(IRequest::class);
$r->expects($this->any())->method('getRequestUri')->willReturn($uri);
$s = new Server($r, '/');
diff --git a/apps/dav/tests/unit/Settings/CalDAVSettingsTest.php b/apps/dav/tests/unit/Settings/CalDAVSettingsTest.php
index 195930e1c67..82148e10dc3 100644
--- a/apps/dav/tests/unit/Settings/CalDAVSettingsTest.php
+++ b/apps/dav/tests/unit/Settings/CalDAVSettingsTest.php
@@ -31,7 +31,7 @@ use Test\TestCase;
class CalDAVSettingsTest extends TestCase {
- /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
private $config;
/** @var CalDAVSettings */
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php b/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
index c0b8c92964f..b4bad9e29b9 100644
--- a/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
+++ b/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
@@ -37,7 +37,7 @@ use Sabre\DAV\Exception\Forbidden;
class SystemTagNodeTest extends \Test\TestCase {
/**
- * @var \OCP\SystemTag\ISystemTagManager|\PHPUnit_Framework_MockObject_MockObject
+ * @var \OCP\SystemTag\ISystemTagManager|\PHPUnit\Framework\MockObject\MockObject
*/
private $tagManager;
@@ -81,7 +81,7 @@ class SystemTagNodeTest extends \Test\TestCase {
$this->assertEquals($tag, $node->getSystemTag());
}
-
+
public function testSetName() {
$this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class);
@@ -198,7 +198,7 @@ class SystemTagNodeTest extends \Test\TestCase {
$this->assertInstanceOf($expectedException, $thrown);
}
-
+
public function testUpdateTagAlreadyExists() {
$this->expectException(\Sabre\DAV\Exception\Conflict::class);
@@ -218,7 +218,7 @@ class SystemTagNodeTest extends \Test\TestCase {
$this->getTagNode(false, $tag)->update('Renamed', true, true);
}
-
+
public function testUpdateTagNotFound() {
$this->expectException(\Sabre\DAV\Exception\NotFound::class);
@@ -286,7 +286,7 @@ class SystemTagNodeTest extends \Test\TestCase {
$this->getTagNode(false, $tag)->delete();
}
-
+
public function testDeleteTagNotFound() {
$this->expectException(\Sabre\DAV\Exception\NotFound::class);
diff --git a/apps/dav/tests/unit/Upload/ChunkingPluginTest.php b/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
index 27d6cbf7e85..465bdf58eda 100644
--- a/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
+++ b/apps/dav/tests/unit/Upload/ChunkingPluginTest.php
@@ -37,12 +37,12 @@ class ChunkingPluginTest extends TestCase {
/**
- * @var \Sabre\DAV\Server | \PHPUnit_Framework_MockObject_MockObject
+ * @var \Sabre\DAV\Server | \PHPUnit\Framework\MockObject\MockObject
*/
private $server;
/**
- * @var \Sabre\DAV\Tree | \PHPUnit_Framework_MockObject_MockObject
+ * @var \Sabre\DAV\Tree | \PHPUnit\Framework\MockObject\MockObject
*/
private $tree;
@@ -50,9 +50,9 @@ class ChunkingPluginTest extends TestCase {
* @var ChunkingPlugin
*/
private $plugin;
- /** @var RequestInterface | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var RequestInterface | \PHPUnit\Framework\MockObject\MockObject */
private $request;
- /** @var ResponseInterface | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var ResponseInterface | \PHPUnit\Framework\MockObject\MockObject */
private $response;
protected function setUp(): void {