/** * Test get content charset */ public function testGetContentCharsetWhenNotExists() { $env = \Slim\Environment::mock(array('slim.input' => '', 'CONTENT_TYPE' => 'application/json')); $req = new \Slim\Http\Request($env); $this->assertNull($req->getContentCharset()); }