diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-11 21:32:18 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-12 13:55:19 +0200 |
commit | 234b510652d117bb3ef9ef3b6315db3a2c2eb91b (patch) | |
tree | 880cec2bf4fe4846eff9fa5aa68d2671fb0495be /apps/comments/tests/Unit/EventHandlerTest.php | |
parent | 138f47a1b980aaceb116b256b8ccf14f523e7e67 (diff) | |
download | nextcloud-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/comments/tests/Unit/EventHandlerTest.php')
-rw-r--r-- | apps/comments/tests/Unit/EventHandlerTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/comments/tests/Unit/EventHandlerTest.php b/apps/comments/tests/Unit/EventHandlerTest.php index bb1d660af1e..daf638aa3d1 100644 --- a/apps/comments/tests/Unit/EventHandlerTest.php +++ b/apps/comments/tests/Unit/EventHandlerTest.php @@ -35,10 +35,10 @@ class EventHandlerTest extends TestCase { /** @var EventHandler */ protected $eventHandler; - /** @var ActivityListener|\PHPUnit_Framework_MockObject_MockObject */ + /** @var ActivityListener|\PHPUnit\Framework\MockObject\MockObject */ protected $activityListener; - /** @var NotificationListener|\PHPUnit_Framework_MockObject_MockObject */ + /** @var NotificationListener|\PHPUnit\Framework\MockObject\MockObject */ protected $notificationListener; protected function setUp(): void { @@ -56,13 +56,13 @@ class EventHandlerTest extends TestCase { } public function testNotFiles() { - /** @var IComment|\PHPUnit_Framework_MockObject_MockObject $comment */ + /** @var IComment|\PHPUnit\Framework\MockObject\MockObject $comment */ $comment = $this->getMockBuilder(IComment::class)->getMock(); $comment->expects($this->once()) ->method('getObjectType') ->willReturn('smiles'); - /** @var CommentsEvent|\PHPUnit_Framework_MockObject_MockObject $event */ + /** @var CommentsEvent|\PHPUnit\Framework\MockObject\MockObject $event */ $event = $this->getMockBuilder(CommentsEvent::class) ->disableOriginalConstructor() ->getMock(); @@ -89,13 +89,13 @@ class EventHandlerTest extends TestCase { * @param string $eventType */ public function testHandled($eventType) { - /** @var IComment|\PHPUnit_Framework_MockObject_MockObject $comment */ + /** @var IComment|\PHPUnit\Framework\MockObject\MockObject $comment */ $comment = $this->getMockBuilder(IComment::class)->getMock(); $comment->expects($this->once()) ->method('getObjectType') ->willReturn('files'); - /** @var CommentsEvent|\PHPUnit_Framework_MockObject_MockObject $event */ + /** @var CommentsEvent|\PHPUnit\Framework\MockObject\MockObject $event */ $event = $this->getMockBuilder(CommentsEvent::class) ->disableOriginalConstructor() ->getMock(); |