/** * Test get content length */ public function testGetContentLengthWhenNotExists() { $env = \Slim\Environment::mock(array('slim.input' => '')); $req = new \Slim\Http\Request($env); $this->assertEquals(0, $req->getContentLength()); }