From 68a7aed27b697bdce07006df9b860d62a3b89c67 Mon Sep 17 00:00:00 2001 From: Joas Schilling <nickvergessen@owncloud.com> Date: Wed, 8 Jun 2016 09:24:00 +0200 Subject: [PATCH] Adjust test to work with phpunit < 5.2 --- apps/files/tests/Controller/ViewControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php index 45495ac9d0c..34c40ecea5c 100644 --- a/apps/files/tests/Controller/ViewControllerTest.php +++ b/apps/files/tests/Controller/ViewControllerTest.php @@ -413,7 +413,7 @@ class ViewControllerTest extends TestCase { ->will($this->returnValue([])); if ($useShowFile) { - $this->expectException('OCP\Files\NotFoundException'); + $this->setExpectedException('OCP\Files\NotFoundException'); $this->viewController->showFile(123); } else { $response = $this->viewController->index('MyDir', 'MyView', '123'); -- GitLab