aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Controller/ControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/AppFramework/Controller/ControllerTest.php')
-rw-r--r--tests/lib/AppFramework/Controller/ControllerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/AppFramework/Controller/ControllerTest.php b/tests/lib/AppFramework/Controller/ControllerTest.php
index 7831b44b632..b1cb1ceab6f 100644
--- a/tests/lib/AppFramework/Controller/ControllerTest.php
+++ b/tests/lib/AppFramework/Controller/ControllerTest.php
@@ -62,7 +62,7 @@ class ControllerTest extends \Test\TestCase {
private $controller;
private $app;
- protected function setUp(){
+ protected function setUp(): void {
parent::setUp();
$request = new Request(
@@ -94,10 +94,10 @@ class ControllerTest extends \Test\TestCase {
$this->controller = new ChildController($this->app, $request);
}
- /**
- * @expectedException \DomainException
- */
+
public function testFormatResonseInvalidFormat() {
+ $this->expectException(\DomainException::class);
+
$this->controller->buildResponse(null, 'test');
}