summaryrefslogtreecommitdiffstats
path: root/tests/ControllerTest.php
diff options
context:
space:
mode:
authorArnold Daniels <arnold@jasny.net>2016-11-20 00:05:28 +0100
committerArnold Daniels <arnold@jasny.net>2016-11-20 00:05:28 +0100
commit52b3eeb0f8be535d76aa76abe182c01279a45efd (patch)
tree198496503440a6a6240502aea6854b9d169afa07 /tests/ControllerTest.php
parent6528ca8d1b058760da858f5c38aef20e5c1b4a22 (diff)
downloadcontroller-52b3eeb0f8be535d76aa76abe182c01279a45efd.zip
controller-52b3eeb0f8be535d76aa76abe182c01279a45efd.tar.gz
controller-52b3eeb0f8be535d76aa76abe182c01279a45efd.tar.bz2
Tests and fixes for RouteAction
Diffstat (limited to 'tests/ControllerTest.php')
-rw-r--r--tests/ControllerTest.php13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/ControllerTest.php b/tests/ControllerTest.php
index 04323a1..b980d48 100644
--- a/tests/ControllerTest.php
+++ b/tests/ControllerTest.php
@@ -31,7 +31,8 @@ class ControllerTest extends \PHPUnit_Framework_TestCase
$test->assertSame($request, $this->getRequest());
$test->assertSame($response, $this->getResponse());
- return $finalResponse;
+ $this->setResponse($finalResponse);
+ return null;
}, $controller, Controller::class));
$result = $controller($request, $response);
@@ -39,16 +40,6 @@ class ControllerTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($finalResponse, $result);
}
- public function testSetResponse()
- {
- $response = $this->createMock(ResponseInterface::class);
-
- $controller = $this->getController();
- $controller->setResponse($response);
-
- $this->assertSame($response, $controller->getResponse());
- }
-
/**
* @expectedException LogicException
*/