MvcLite\Response::setBody
set the body of the response
Signature
public function setBody(string
$string )
Parameters
$string
— string
Returns
- Response
- $this for object-chaining.
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- [ PASSED ] — MvcLite\ResponseTest::testSetBody