MvcLite\Request::getContentType
Getter for the content type of the request.
Signature
public function getContentType()
Returns
- string
- The content type.
Test Coverage
Information
- Coverage: 10/10 Lines (100%)
- Tests: 5
- Passed: 5 (100%)
Tests
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- [ PASSED ] — MvcLite\RequestTest::testGetContentType with data set "has content type text/plain"
- [ PASSED ] — MvcLite\RequestTest::testGetContentType with data set "has no content type, but has accept headers"
- [ PASSED ] — MvcLite\RequestTest::testGetContentType with data set "has nothing"