Example #1
0
 /**
  * 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());
 }
Example #2
0
 /**
  * Test get refererer
  */
 public function testGetUserAgentWhenNotExists()
 {
     $env = Slim_Environment::getInstance();
     $req = new Slim_Http_Request($env);
     $this->assertNull($req->getUserAgent());
 }