Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable10] Updating phpunit/phpunit (5.7.27 => 6.5.14) #34866

Merged
merged 5 commits into from
Apr 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions apps/comments/tests/unit/Dav/EntityCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@

class EntityCollectionTest 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\Comments\Dav\EntityCollection */
protected $collection;
/** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject */
/** @var \OCP\IUserSession|\PHPUnit\Framework\MockObject\MockObject */
protected $userSession;

public function setUp() {
Expand Down
8 changes: 4 additions & 4 deletions apps/comments/tests/unit/Dav/EntityTypeCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@

class EntityTypeCollectionTest 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\Comments\Dav\EntityTypeCollection */
protected $collection;
/** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject */
/** @var \OCP\IUserSession|\PHPUnit\Framework\MockObject\MockObject */
protected $userSession;

protected $childMap = [];
Expand Down
10 changes: 5 additions & 5 deletions apps/comments/tests/unit/Dav/RootCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@

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\Comments\Dav\RootCollection */
protected $collection;
/** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject */
/** @var \OCP\IUserSession|\PHPUnit\Framework\MockObject\MockObject */
protected $userSession;
/** @var \Symfony\Component\EventDispatcher\EventDispatcherInterface */
protected $dispatcher;
/** @var \OCP\IUser|\PHPUnit_Framework_MockObject_MockObject */
/** @var \OCP\IUser|\PHPUnit\Framework\MockObject\MockObject */
protected $user;

public function setUp() {
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/AppInfo/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testContactsManagerSetup() {
});

// assert setupContactsProvider() is proper
/** @var IManager | \PHPUnit_Framework_MockObject_MockObject $cm */
/** @var IManager | \PHPUnit\Framework\MockObject\MockObject $cm */
$cm = $this->getMockBuilder('OCP\Contacts\IManager')->disableOriginalConstructor()->getMock();
$app->setupContactsProvider($cm, 'xxx');
$this->assertTrue(true);
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/Avatars/AvatarHomeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AvatarHomeTest extends TestCase {
/** @var AvatarHome */
private $home;

/** @var IAvatarManager | \PHPUnit_Framework_MockObject_MockObject */
/** @var IAvatarManager | \PHPUnit\Framework\MockObject\MockObject */
private $avatarManager;

public function setUp() {
Expand Down
6 changes: 3 additions & 3 deletions apps/dav/tests/unit/Avatars/AvatarNodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@

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());
Expand All @@ -50,7 +50,7 @@ public function testGetContentType() {
public function testGetOperation($realImage, $mime, $imageFunction) {
$image = $this->createMock(IImage::class);
$image->expects($this->once())->method('resource')->willReturn($realImage);
/** @var IAvatar | \PHPUnit_Framework_MockObject_MockObject $a */
/** @var IAvatar | \PHPUnit\Framework\MockObject\MockObject $a */
$a = $this->createMock(IAvatar::class);
$a->expects($this->once())->method('get')->with(1024)->willReturn($image);
$n = new AvatarNode(1024, $mime, $a);
Expand Down
4 changes: 2 additions & 2 deletions apps/dav/tests/unit/BackgroundJob/CleanPropertiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
*/
class CleanPropertiesTest extends TestCase {
use UserTrait;
/** @var IDBConnection | \PHPUnit_Framework_MockObject_MockObject */
/** @var IDBConnection | \PHPUnit\Framework\MockObject\MockObject */
private $connection;
/** @var ILogger | \PHPUnit_Framework_MockObject_MockObject */
/** @var ILogger | \PHPUnit\Framework\MockObject\MockObject */
private $logger;
/** @var CleanProperties */
private $cleanProperties;
Expand Down
4 changes: 2 additions & 2 deletions apps/dav/tests/unit/CalDAV/AbstractCalDavBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ abstract class AbstractCalDavBackendTest extends TestCase {
/** @var CalDavBackend */
protected $backend;

/** @var Principal | \PHPUnit_Framework_MockObject_MockObject */
/** @var Principal | \PHPUnit\Framework\MockObject\MockObject */
protected $principal;

/** @var GroupPrincipalBackend | \PHPUnit_Framework_MockObject_MockObject */
/** @var GroupPrincipalBackend | \PHPUnit\Framework\MockObject\MockObject */
protected $groupPrincipal;

/** @var IConfig */
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function providesSharingData() {
*/
public function testCalendarSharing($userCanRead, $userCanWrite, $groupCanRead, $groupCanWrite, $add) {

/** @var IL10N | \PHPUnit_Framework_MockObject_MockObject $l10n */
/** @var IL10N | \PHPUnit\Framework\MockObject\MockObject $l10n */
$l10n = $this->getMockBuilder(IL10N::class)
->disableOriginalConstructor()->getMock();
$l10n
Expand Down
12 changes: 6 additions & 6 deletions apps/dav/tests/unit/CalDAV/CalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function setUp() {
}

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([
Expand All @@ -69,7 +69,7 @@ public function testDelete() {
* @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testDeleteFromGroup() {
/** @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([
Expand Down Expand Up @@ -105,7 +105,7 @@ public function dataPropPatch() {
* @dataProvider dataPropPatch
*/
public function testPropPatch($mutations, $throws) {
/** @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' => 'user1',
Expand All @@ -128,7 +128,7 @@ public function testPropPatch($mutations, $throws) {
* @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 = [
Expand Down Expand Up @@ -206,7 +206,7 @@ public function testPrivateClassification($expectedChildren, $isShared) {
$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
Expand Down Expand Up @@ -292,7 +292,7 @@ public function testConfidentialClassification($expectedChildren, $isShared) {
$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
Expand Down
6 changes: 3 additions & 3 deletions apps/dav/tests/unit/CalDAV/Publishing/PublishingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,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;

public function setUp() {
Expand Down
24 changes: 12 additions & 12 deletions apps/dav/tests/unit/CalDAV/Schedule/IMipPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
class IMipPluginTest extends TestCase {
public function testDelivery() {
$mailMessage = new \OC\Mail\Message(new \Swift_Message());
/** @var Mailer | \PHPUnit_Framework_MockObject_MockObject $mailer */
/** @var Mailer | \PHPUnit\Framework\MockObject\MockObject $mailer */
$mailer = $this->createMock(Mailer::class);
$mailer->method('createMessage')->willReturn($mailMessage);
$mailer->expects($this->once())->method('send');
/** @var ILogger | \PHPUnit_Framework_MockObject_MockObject $logger */
/** @var ILogger | \PHPUnit\Framework\MockObject\MockObject $logger */
$logger = $this->createMock(Log::class);
/** @var IRequest| \PHPUnit_Framework_MockObject_MockObject $request */
/** @var IRequest| \PHPUnit\Framework\MockObject\MockObject $request */
$request = $this->createMock(IRequest::class);

$plugin = new IMipPlugin($mailer, $logger, $request);
Expand All @@ -65,13 +65,13 @@ public function testDelivery() {

public function testFailedDeliveryWithException() {
$mailMessage = new \OC\Mail\Message(new \Swift_Message());
/** @var Mailer | \PHPUnit_Framework_MockObject_MockObject $mailer */
/** @var Mailer | \PHPUnit\Framework\MockObject\MockObject $mailer */
$mailer = $this->createMock(Mailer::class);
$mailer->method('createMessage')->willReturn($mailMessage);
$mailer->method('send')->willThrowException(new \Exception());
/** @var ILogger | \PHPUnit_Framework_MockObject_MockObject $logger */
/** @var ILogger | \PHPUnit\Framework\MockObject\MockObject $logger */
$logger = $this->createMock(Log::class);
/** @var IRequest| \PHPUnit_Framework_MockObject_MockObject $request */
/** @var IRequest| \PHPUnit\Framework\MockObject\MockObject $request */
$request = $this->createMock(IRequest::class);

$plugin = new IMipPlugin($mailer, $logger, $request);
Expand All @@ -96,14 +96,14 @@ public function testFailedDeliveryWithException() {

public function testFailedDelivery() {
$mailMessage = new \OC\Mail\Message(new \Swift_Message());
/** @var Mailer | \PHPUnit_Framework_MockObject_MockObject $mailer */
/** @var Mailer | \PHPUnit\Framework\MockObject\MockObject $mailer */
$mailer = $this->createMock(Mailer::class);
$mailer->method('createMessage')->willReturn($mailMessage);
$mailer->method('send')->willReturn(['foo@example.net']);
/** @var ILogger | \PHPUnit_Framework_MockObject_MockObject $logger */
/** @var ILogger | \PHPUnit\Framework\MockObject\MockObject $logger */
$logger = $this->createMock(Log::class);
$logger->expects(self::once())->method('error')->with('Unable to deliver message to {failed}', ['app' => 'dav', 'failed' => 'foo@example.net']);
/** @var IRequest| \PHPUnit_Framework_MockObject_MockObject $request */
/** @var IRequest| \PHPUnit\Framework\MockObject\MockObject $request */
$request = $this->createMock(IRequest::class);

$plugin = new IMipPlugin($mailer, $logger, $request);
Expand All @@ -128,13 +128,13 @@ public function testFailedDelivery() {

public function testDeliveryOfCancel() {
$mailMessage = new \OC\Mail\Message(new \Swift_Message());
/** @var Mailer | \PHPUnit_Framework_MockObject_MockObject $mailer */
/** @var Mailer | \PHPUnit\Framework\MockObject\MockObject $mailer */
$mailer = $this->createMock(Mailer::class);
$mailer->method('createMessage')->willReturn($mailMessage);
$mailer->expects($this->once())->method('send');
/** @var ILogger | \PHPUnit_Framework_MockObject_MockObject $logger */
/** @var ILogger | \PHPUnit\Framework\MockObject\MockObject $logger */
$logger = $this->createMock(Log::class);
/** @var IRequest| \PHPUnit_Framework_MockObject_MockObject $request */
/** @var IRequest| \PHPUnit\Framework\MockObject\MockObject $request */
$request = $this->createMock(IRequest::class);

$plugin = new IMipPlugin($mailer, $logger, $request);
Expand Down
16 changes: 8 additions & 8 deletions apps/dav/tests/unit/CardDAV/AddressBookImplTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,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;

public function setUp() {
Expand Down Expand Up @@ -86,7 +86,7 @@ public function testGetDisplayName() {

public function testSearch() {

/** @var \PHPUnit_Framework_MockObject_MockObject | AddressBookImpl $addressBookImpl */
/** @var \PHPUnit\Framework\MockObject\MockObject | AddressBookImpl $addressBookImpl */
$addressBookImpl = $this->getMockBuilder(AddressBookImpl::class)
->setConstructorArgs(
[
Expand Down Expand Up @@ -132,7 +132,7 @@ public function testSearch() {
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(
[
Expand Down Expand Up @@ -172,7 +172,7 @@ public function testUpdate() {
$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(
[
Expand Down Expand Up @@ -255,7 +255,7 @@ public function testReadCard() {
}

public function testCreateUid() {
/** @var \PHPUnit_Framework_MockObject_MockObject | AddressBookImpl $addressBookImpl */
/** @var \PHPUnit\Framework\MockObject\MockObject | AddressBookImpl $addressBookImpl */
$addressBookImpl = $this->getMockBuilder(AddressBookImpl::class)
->setConstructorArgs(
[
Expand Down
8 changes: 4 additions & 4 deletions apps/dav/tests/unit/CardDAV/AddressBookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

class AddressBookTest extends TestCase {
public function testDelete() {
/** @var \PHPUnit_Framework_MockObject_MockObject | CardDavBackend $backend */
/** @var \PHPUnit\Framework\MockObject\MockObject | CardDavBackend $backend */
$backend = $this->getMockBuilder('OCA\DAV\CardDAV\CardDavBackend')->disableOriginalConstructor()->getMock();
$backend->expects($this->once())->method('updateShares');
$backend->expects($this->any())->method('getShares')->willReturn([
Expand All @@ -48,7 +48,7 @@ public function testDelete() {
* @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testDeleteFromGroup() {
/** @var \PHPUnit_Framework_MockObject_MockObject | CardDavBackend $backend */
/** @var \PHPUnit\Framework\MockObject\MockObject | CardDavBackend $backend */
$backend = $this->getMockBuilder('OCA\DAV\CardDAV\CardDavBackend')->disableOriginalConstructor()->getMock();
$backend->expects($this->never())->method('updateShares');
$backend->expects($this->any())->method('getShares')->willReturn([
Expand All @@ -67,7 +67,7 @@ public function testDeleteFromGroup() {
* @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testPropPatch() {
/** @var \PHPUnit_Framework_MockObject_MockObject | CardDavBackend $backend */
/** @var \PHPUnit\Framework\MockObject\MockObject | CardDavBackend $backend */
$backend = $this->getMockBuilder('OCA\DAV\CardDAV\CardDavBackend')->disableOriginalConstructor()->getMock();
$calendarInfo = [
'{http://owncloud.org/ns}owner-principal' => 'user1',
Expand All @@ -82,7 +82,7 @@ public function testPropPatch() {
* @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('OCA\DAV\CardDAV\CardDavBackend')->disableOriginalConstructor()->getMock();
$backend->expects($this->any())->method('applyShareAcl')->willReturnArgument(1);
$calendarInfo = [
Expand Down
8 changes: 4 additions & 4 deletions apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ 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;

public function setUp() {
Expand Down Expand Up @@ -106,7 +106,7 @@ public function testOnCardChanged($expectedOp) {
]);
$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])
Expand Down
Loading