/** * Test of SafeRequest::getContentType() with valid input. * * @return bool true True on Pass. */ function testGetContentTypeInputValid() { $req = new SafeRequest(array('env' => array('CONTENT_TYPE' => 'application/url-form-encoded'))); $result = $req->getContentType(); $this->assertInternalType('string', $result); $this->assertEquals('application/url-form-encoded', $result); }