/** * Test get user agent string when not set */ public function testGetUserAgentWhenNotExists() { $env = Slim_Environment::mock(); unset($env['USER_AGENT']); $req = new Slim_Http_Request($env); $this->assertNull($req->getUserAgent()); }
/** * Test get refererer */ public function testGetUserAgentWhenNotExists() { $env = Slim_Environment::getInstance(); $req = new Slim_Http_Request($env); $this->assertNull($req->getUserAgent()); }