From 234b510652d117bb3ef9ef3b6315db3a2c2eb91b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 11 Aug 2020 21:32:18 +0200 Subject: Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke --- apps/files/tests/Controller/ApiControllerTest.php | 4 ++-- apps/files/tests/Controller/ViewControllerTest.php | 14 +++++++------- apps/files/tests/Service/TagServiceTest.php | 10 +++++----- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'apps/files/tests') diff --git a/apps/files/tests/Controller/ApiControllerTest.php b/apps/files/tests/Controller/ApiControllerTest.php index d347cffdd81..bf3ca5e5a87 100644 --- a/apps/files/tests/Controller/ApiControllerTest.php +++ b/apps/files/tests/Controller/ApiControllerTest.php @@ -57,7 +57,7 @@ class ApiControllerTest extends TestCase { private $request; /** @var TagService */ private $tagService; - /** @var IPreview|\PHPUnit_Framework_MockObject_MockObject */ + /** @var IPreview|\PHPUnit\Framework\MockObject\MockObject */ private $preview; /** @var ApiController */ private $apiController; @@ -65,7 +65,7 @@ class ApiControllerTest extends TestCase { private $shareManager; /** @var \OCP\IConfig */ private $config; - /** @var Folder|\PHPUnit_Framework_MockObject_MockObject */ + /** @var Folder|\PHPUnit\Framework\MockObject\MockObject */ private $userFolder; protected function setUp(): void { diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php index 50eb40079a0..c17c2ea3575 100644 --- a/apps/files/tests/Controller/ViewControllerTest.php +++ b/apps/files/tests/Controller/ViewControllerTest.php @@ -56,27 +56,27 @@ use Test\TestCase; * @package OCA\Files\Tests\Controller */ class ViewControllerTest extends TestCase { - /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */ + /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */ private $request; - /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */ + /** @var IURLGenerator|\PHPUnit\Framework\MockObject\MockObject */ private $urlGenerator; /** @var IL10N */ private $l10n; - /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */ + /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */ private $config; /** @var EventDispatcherInterface */ private $eventDispatcher; - /** @var ViewController|\PHPUnit_Framework_MockObject_MockObject */ + /** @var ViewController|\PHPUnit\Framework\MockObject\MockObject */ private $viewController; /** @var IUser */ private $user; /** @var IUserSession */ private $userSession; - /** @var IAppManager|\PHPUnit_Framework_MockObject_MockObject */ + /** @var IAppManager|\PHPUnit\Framework\MockObject\MockObject */ private $appManager; - /** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */ + /** @var IRootFolder|\PHPUnit\Framework\MockObject\MockObject */ private $rootFolder; - /** @var Helper|\PHPUnit_Framework_MockObject_MockObject */ + /** @var Helper|\PHPUnit\Framework\MockObject\MockObject */ private $activityHelper; protected function setUp(): void { diff --git a/apps/files/tests/Service/TagServiceTest.php b/apps/files/tests/Service/TagServiceTest.php index ca6d98909ed..e9c55400493 100644 --- a/apps/files/tests/Service/TagServiceTest.php +++ b/apps/files/tests/Service/TagServiceTest.php @@ -48,10 +48,10 @@ class TagServiceTest extends \Test\TestCase { */ private $user; - /** @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 $activityManager; /** @@ -59,11 +59,11 @@ class TagServiceTest extends \Test\TestCase { */ private $root; - /** @var EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject */ + /** @var EventDispatcherInterface|\PHPUnit\Framework\MockObject\MockObject */ private $dispatcher; /** - * @var \OCA\Files\Service\TagService|\PHPUnit_Framework_MockObject_MockObject + * @var \OCA\Files\Service\TagService|\PHPUnit\Framework\MockObject\MockObject */ private $tagService; @@ -98,7 +98,7 @@ class TagServiceTest extends \Test\TestCase { /** * @param array $methods - * @return TagService|\PHPUnit_Framework_MockObject_MockObject + * @return TagService|\PHPUnit\Framework\MockObject\MockObject */ protected function getTagService(array $methods = []) { return $this->getMockBuilder(TagService::class) -- cgit v1.2.3